Update assert

This commit is contained in:
Patrick Pelissier committed 2017-12-24 22:36:34 +01:00
1 parent 691653c13e
commit 602cc63c96
1 file changed
+2 -2
+2 -2
View File
@@ -112,7 +112,7 @@ void json_clear (json_t p)
void json_init_set(json_t *p, json_t o)
{
assert (p != NULL);
assert (p != NULL && o != NULL);
*p = malloc (sizeof (struct json_node_s));
if (*p == NULL) abort();
variant_json_init_set((*p)->json, o->json);
@@ -120,7 +120,7 @@ void json_init_set(json_t *p, json_t o)
void json_set(json_t *p, json_t o)
{
assert (p != NULL);
assert (p != NULL && *p != NULL && o != NULL);
variant_json_set((*p)->json, o->json);
}