Fix empty array dumping

This commit is contained in:
Petri Lehtinen 2009-07-03 23:22:47 +03:00
parent 55af26f05a
commit 4384776776

View File

@ -145,7 +145,7 @@ static int do_dump(const json_t *json, uint32_t flags, int depth,
if(dump("[", 1, data))
return -1;
if(n == 0)
dump("]", 1, data);
return dump("]", 1, data);
if(dump_indent(flags, depth + 1, dump, data))
return -1;