mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +00:00
flog: Missing varargs init or cleanup (VARARGS)
CID 302713 (#1 of 1): Missing varargs init or cleanup (VARARGS) va_end was not called for argptr. Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
committed by
Andrei Vagin
parent
823db1bfcc
commit
1444b72d25
@@ -186,6 +186,7 @@ int flog_encode_msg(int fdout, unsigned int nargs, unsigned int mask, const char
|
||||
p = memccpy(str_start, (void *)m->args[i], 0, mbuf_size - (str_start - mbuf));
|
||||
if (p == NULL) {
|
||||
fprintf(stderr, "No memory for string argument\n");
|
||||
va_end(argptr);
|
||||
return -1;
|
||||
}
|
||||
m->args[i] = str_start - mbuf;
|
||||
|
Reference in New Issue
Block a user