Commit c749a196 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Dont combine VSB_QUOTE_JSON and VSB_QUOTE_CSTR, just emit the

double quotes ourselves.
parent 1c4d04f6
......@@ -377,7 +377,9 @@ tweak_string(struct vsb *vsb, const struct parspec *par, const char *arg)
if (arg == NULL) {
VSB_quote(vsb, *p, -1, 0);
} else if (arg == JSON_FMT) {
VSB_quote(vsb, *p, -1, VSB_QUOTE_JSON|VSB_QUOTE_CSTR);
VSB_putc(vsb, '"');
VSB_quote(vsb, *p, -1, VSB_QUOTE_JSON);
VSB_putc(vsb, '"');
} else {
REPLACE(*p, arg);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment