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:
Eric Blake
2009-10-14 04:17:05 +00:00
parent e4ba1cf29e
commit 4cd31fc8f9
6 changed files with 98 additions and 44 deletions

View File

@ -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;