Commit 8572a435 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Skip processing empty strings earlier

parent 95a34ee9
......@@ -170,7 +170,7 @@ VRT_StringList(char *d, unsigned dl, const char *p, va_list ap)
b = d;
e = b + dl;
while (p != vrt_magic_string_end && b < e) {
if (p != NULL) {
if (p != NULL && *p != '\0') {
x = strlen(p);
if (b + x < e)
memcpy(b, p, x);
......
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