Skip to content

Commit

Permalink
flog: Missing varargs init or cleanup (VARARGS)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
adrianreber authored and avagin committed Nov 8, 2020
1 parent 5329446 commit e180172
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flog/src/flog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e180172

Please sign in to comment.