added merge of json trees

This commit is contained in:
Olof Hagsand 2018-05-15 22:24:44 +02:00
parent 20a677cb6c
commit 353f2e6038

View file

@ -691,8 +691,9 @@ int
json_parse_str(char *str,
cxobj **xt)
{
if ((*xt = xml_new("top", NULL, NULL)) == NULL)
return -1;
if (*xt == NULL)
if ((*xt = xml_new("top", NULL, NULL)) == NULL)
return -1;
return json_parse(str, "", *xt);
}