lib: wpsettings: Add _register_callback () API

This commit is contained in:
Ashok Sidipotu
2022-05-26 13:15:22 +05:30
committed by Julian Bouzas
parent 8e9d852124
commit cfd51d9fe2
7 changed files with 477 additions and 52 deletions

View File

@@ -160,8 +160,11 @@ do_parse_settings (void *data, const char *location,
int len = 0;
g_value_unset (&item);
if (!wp_iterator_next (iter, &item))
if (!wp_iterator_next (iter, &item)) {
wp_warning ("It is likely that the JSON syntax is incorrect,"
" check key value pair formatting");
break;
}
j = g_value_get_boxed (&item);
value = wp_spa_json_parse_string (j);