* sigproc.h (cygwait): Delete duplicate va_start and add matching va_end.

This commit is contained in:
Christopher Faylor
2011-12-10 18:12:28 +00:00
parent bc1d321c57
commit 83ebb09239
2 changed files with 8 additions and 1 deletions

View File

@ -85,11 +85,13 @@ static inline DWORD
cygwait (DWORD n, DWORD howlong, ...)
{
va_list ap;
va_start (ap, howlong);
HANDLE w4[n + 2];
va_start (ap, howlong);
for (unsigned i = 0; i < n; i++)
w4[i] = va_arg (ap, HANDLE);
va_end (ap);
w4[n++] = signal_arrived;
if ((w4[n] = pthread::get_cancel_event ()) != NULL)
n++;