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 May 13, 2022
1 parent 6f8d543 commit bf7b517
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 bf7b517

Please sign in to comment.