Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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)