Changeset: 01a51ecc108e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=01a51ecc108e
Modified Files:
monetdb5/modules/atoms/json.c
Branch: Nov2019
Log Message:
json.text should not delete the last separator if it is empty
This fixes Bug 6798
diffs (12 lines):
diff --git a/monetdb5/modules/atoms/json.c b/monetdb5/modules/atoms/json.c
--- a/monetdb5/modules/atoms/json.c
+++ b/monetdb5/modules/atoms/json.c
@@ -1183,7 +1183,7 @@ JSONjson2textSeparator(str *ret, json *j
}
JSONplaintext(s, &l, jt, 0, **sep);
l = strlen(s);
- if (l)
+ if (l && **sep)
s[l - 1] = 0;
*ret = s;
JSONfree(jt);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list