]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Issue #928 - work around over-zealous uninitialized check in chromebrew gcc.
authorEric Hawicz <erh+git@nimenees.com>
Sun, 21 Jun 2026 23:25:37 +0000 (19:25 -0400)
committerEric Hawicz <erh+git@nimenees.com>
Sun, 21 Jun 2026 23:25:37 +0000 (19:25 -0400)
json_object.c

index db79d6eb5d7c734853a4f2145cb68309e602929b..244775ab38f49c9443abb8d0195a831c7f1f1981 100644 (file)
@@ -369,7 +369,7 @@ int json_object_put(struct json_object *jso)
                while (slots_left > 0)
                {
                        size_t cur_slot = slots_left - 1;
-                       json_object *child;
+                       json_object *child = NULL;
 
                        // First, clear the slot in the current jso object
                        // The slot itself will be freed when jso is freed, or