Content-Length: 261178 | pFad | http://github.com/postgrespro/postgres/commit/120c5cc761e0d99a9a2f3349f4031850b0dbd5a0

B3 Silence compiler warnings about possibly unset variables. · postgrespro/postgres@120c5cc · GitHub
Skip to content

Commit 120c5cc

Browse files
committed
Silence compiler warnings about possibly unset variables.
They are in fact set in every case where they are needed, but the compiler doesn't know that. Per gripe from Tom Lane.
1 parent 5e52e9d commit 120c5cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/jsonfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,8 +1283,8 @@ populate_record_worker(PG_FUNCTION_ARGS, bool have_record_arg)
12831283
bool use_json_as_text;
12841284
HTAB *json_hash;
12851285
HeapTupleHeader rec = NULL;
1286-
Oid tupType;
1287-
int32 tupTypmod;
1286+
Oid tupType = InvalidOid;
1287+
int32 tupTypmod = -1;
12881288
TupleDesc tupdesc;
12891289
HeapTupleData tuple;
12901290
HeapTuple rettuple;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/120c5cc761e0d99a9a2f3349f4031850b0dbd5a0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy