Skip to content

Commit 28b29f7

Browse files
committed
Add a couple of missing JsonbValue type initialisers.
1 parent 37def42 commit 28b29f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/utils/adt/jsonfuncs.c

+2
Original file line numberDiff line numberDiff line change
@@ -3718,6 +3718,7 @@ setPathObject(JsonbIterator **it, Datum *path_elems, bool *path_nulls,
37183718
{
37193719
JsonbValue new = k;
37203720

3721+
new.type = jbvString;
37213722
new.val.string.len = VARSIZE_ANY_EXHDR(path_elems[level]);
37223723
new.val.string.val = VARDATA_ANY(path_elems[level]);
37233724

@@ -3759,6 +3760,7 @@ setPathObject(JsonbIterator **it, Datum *path_elems, bool *path_nulls,
37593760
{
37603761
JsonbValue new = k;
37613762

3763+
new.type = jbvString;
37623764
new.val.string.len = VARSIZE_ANY_EXHDR(path_elems[level]);
37633765
new.val.string.val = VARDATA_ANY(path_elems[level]);
37643766

0 commit comments

Comments
 (0)