summaryrefslogtreecommitdiff
path: root/xs_json.h
diff options
context:
space:
mode:
authorGravatar default2024-03-09 08:32:20 +0100
committerGravatar default2024-03-09 08:32:20 +0100
commit00b019b8902e9d319d855b9156f97f931923331c (patch)
tree3d17736c3884f119b3e223947bea31b6f5953ce1 /xs_json.h
parentBackport from xs. (diff)
downloadpenes-snac2-00b019b8902e9d319d855b9156f97f931923331c.tar.gz
penes-snac2-00b019b8902e9d319d855b9156f97f931923331c.tar.xz
penes-snac2-00b019b8902e9d319d855b9156f97f931923331c.zip
Backport from xs.
Diffstat (limited to '')
-rw-r--r--xs_json.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xs_json.h b/xs_json.h
index e7f275d..d656b15 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -115,7 +115,9 @@ static void _xs_json_dump(const xs_val *s_data, int level, int indent, FILE *f)
115 fputc('{', f); 115 fputc('{', f);
116 116
117 xs_str *k; 117 xs_str *k;
118 while (xs_dict_iter(&data, &k, &v)) { 118 int ct = 0;
119
120 while (xs_dict_next(s_data, &k, &v, &ct)) {
119 if (c != 0) 121 if (c != 0)
120 fputc(',', f); 122 fputc(',', f);
121 123