Commit 1c4d04f6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Dont pass empty strings to VSB_quote()

parent 4d483a2c
......@@ -69,7 +69,7 @@ main(void)
do {
p = n + 1;
n = strchr(p, '\n');
if (n != NULL) {
if (n != NULL && n > p) {
VSB_putc(vsb, '\t');
VSB_quote(vsb, p, (int)(n - p), VSB_QUOTE_CSTR);
VSB_cat(vsb, ",\n");
......
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