ud.cfg = cfg;
ud.state = 0;
ctx = g_markup_parse_context_new (&xml_parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &ud, NULL);
- init_kvstorage_config ();
res = g_markup_parse_context_parse (ctx, data, st.st_size, &err);
munmap (data, st.st_size);
return;
}
- top = ud->parent_pointer[0];
- ud->parent_pointer[0] =
+ top = ud->parent_pointer[ud->nested - 1];
+ ud->parent_pointer[ud->nested - 1] =
ucl_object_insert_key (top, ucl_object_fromstring_common (text, text_len, UCL_STRING_PARSE),
ud->section_name[ud->nested - 1], 0, true);
}