diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-08-24 12:42:58 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-08-24 17:44:07 +0100 |
commit | 3978fc21c75f527f1220c15c9e2427c6a0b7a08d (patch) | |
tree | 10b0fa7e70aedae678dffd18e7e0b75ee18f2228 /json-glib/json-utils.c | |
parent | 179fe250d6be400566c79e1d83bb45c07e975183 (diff) | |
download | json-glib-3978fc21c75f527f1220c15c9e2427c6a0b7a08d.tar.gz |
Assert that foreach_member() won't mutate the object
We document that it's not safe, but we kind of rely on GHashTable to do
that for us. Instead, let's use the newly added age field to protect
against accidental mutations during iteration, just like we do for the
iterator API.
Diffstat (limited to 'json-glib/json-utils.c')
0 files changed, 0 insertions, 0 deletions