mirror of
https://https.git.savannah.gnu.org/git/findutils.git
synced 2026-01-26 15:39:06 +00:00
maint: add missing va_end
'va_start' must have a corresponding 'va_end'. Depending on the implementation, the consequence of a missing 'va_end' may be a corrupted stack. * find/print.c (checked_fprintf): Add va_end. Spotted by coverity analysis.
This commit is contained in:
parent
8b27459ef9
commit
76d7e2dcb4
@ -803,6 +803,7 @@ checked_fprintf (struct format_val *dest, const char *fmt, ...)
|
||||
|
||||
va_start (ap, fmt);
|
||||
rv = vfprintf (dest->stream, fmt, ap);
|
||||
va_end (ap);
|
||||
if (rv < 0)
|
||||
nonfatal_nontarget_file_error (errno, dest->filename);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user