]> granicus.if.org Git - postgresql/commitdiff
Remove dead code.
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 19 Jul 2015 17:19:38 +0000 (13:19 -0400)
committerAndrew 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

index 424280b929eeef4d90e67e45f8edc0f80e4ca4c1..17e787b60a2eda2dabc86bae92d9674a5e8a191d 100644 (file)
@@ -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)
        {