From 43847767766380bf4d92a15992c6be851fc48add Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Fri, 3 Jul 2009 23:22:47 +0300 Subject: [PATCH] Fix empty array dumping --- src/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dump.c b/src/dump.c index 7a566d9..02692f7 100644 --- a/src/dump.c +++ b/src/dump.c @@ -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;