mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 05:42:54 +00:00
conf: va_end was not called.
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
This commit is contained in:
parent
87c6e5db2a
commit
7b5a2435a2
@ -530,8 +530,10 @@ int run_script(const char *name, const char *section, const char *script, ...)
|
|||||||
int len = size - ret;
|
int len = size - ret;
|
||||||
int rc;
|
int rc;
|
||||||
rc = snprintf(buffer + ret, len, " %s", p);
|
rc = snprintf(buffer + ret, len, " %s", p);
|
||||||
if (rc < 0 || rc >= len)
|
if (rc < 0 || rc >= len) {
|
||||||
|
va_end(ap);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
ret += rc;
|
ret += rc;
|
||||||
}
|
}
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
Loading…
Reference in New Issue
Block a user