Consistently use va_end.
* external.cc (cygwin_internal): Use va_end. * fork.cc (child_copy): Likewise. * libc/bsdlib.cc (warn, warnx, err, errx): Likewise. * pinfo.cc (commune_request): Likewise. * strace.cc (strace::prntf, strace_printf): Likewise.
This commit is contained in:
@ -758,10 +758,12 @@ child_copy (HANDLE hp, bool write, ...)
|
||||
}
|
||||
}
|
||||
|
||||
va_end (args);
|
||||
debug_printf ("done");
|
||||
return true;
|
||||
|
||||
err:
|
||||
va_end (args);
|
||||
TerminateProcess (hp, 1);
|
||||
set_errno (EAGAIN);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user