projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd735e9
)
Remove dead code.
author
Andrew Dunstan
<andrew@dunslane.net>
Sun, 19 Jul 2015 17:19:38 +0000
(13:19 -0400)
committer
Andrew Dunstan
<andrew@dunslane.net>
Sun, 19 Jul 2015 17:20:45 +0000
(13:20 -0400)
Defect noticed by Coverity.
src/backend/utils/adt/jsonfuncs.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/jsonfuncs.c
b/src/backend/utils/adt/jsonfuncs.c
index 424280b929eeef4d90e67e45f8edc0f80e4ca4c1..17e787b60a2eda2dabc86bae92d9674a5e8a191d 100644
(file)
--- a/
src/backend/utils/adt/jsonfuncs.c
+++ b/
src/backend/utils/adt/jsonfuncs.c
@@
-3480,7
+3480,7
@@
jsonb_delete_idx(PG_FUNCTION_ARGS)
if (idx >= n)
PG_RETURN_JSONB(in);
- pushJsonbValue(&state, r,
r < WJB_BEGIN_ARRAY ? &v :
NULL);
+ pushJsonbValue(&state, r, NULL);
while ((r = JsonbIteratorNext(&it, &v, true)) != 0)
{