Unverified Commit dfd8ceba by Donghwa Jeong Committed by Christian Brauner

conf: va_end was not called.

parent 8e50bbe6
......@@ -530,8 +530,10 @@ int run_script(const char *name, const char *section, const char *script, ...)
int len = size - ret;
int rc;
rc = snprintf(buffer + ret, len, " %s", p);
if (rc < 0 || rc >= len)
if (rc < 0 || rc >= len) {
va_end(ap);
return -1;
}
ret += rc;
}
va_end(ap);
......
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