mirror of
https://github.com/json-c/json-c.git
synced 2026-03-29 09:59:06 +08:00
Make it safe to delete keys while iterating with the json_object_object_foreach macro.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
==== delete-in-loop test starting ====
|
||||
Key at index 0 is [foo1] (kept)
|
||||
Key at index 1 is [foo2] (kept)
|
||||
Key at index 2 is [deleteme] (deleted)
|
||||
Key at index 3 is [foo3] (kept)
|
||||
==== replace-value first loop starting ====
|
||||
Key at index 0 is [foo1]
|
||||
Key at index 1 is [foo2]
|
||||
replacing value for key [foo2]
|
||||
|
||||
Reference in New Issue
Block a user