Code

store: tojson(): Comma-separate multiple hosts.
authorSebastian Harl <sh@tokkee.org>
Sat, 7 Dec 2013 15:12:23 +0000 (16:12 +0100)
committerSebastian Harl <sh@tokkee.org>
Sat, 7 Dec 2013 15:12:23 +0000 (16:12 +0100)
src/core/store.c

index 95aaafad9a46b370c17d0aec0e885bbb66843e1f..cf4d4a40a9a700d3d50b2ccd38edb6e5bbe6fb47 100644 (file)
@@ -537,7 +537,7 @@ sdb_store_tojson(sdb_strbuf_t *buf)
                }
 
                sdb_llist_iter_destroy(svc_iter);
-               sdb_strbuf_append(buf, "]}");
+               sdb_strbuf_append(buf, "]},");
        }
 
        sdb_strbuf_append(buf, "]}");