Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r--winsup/cygwin/libc/bsdlib.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/libc/bsdlib.cc b/winsup/cygwin/libc/bsdlib.cc
index 92677d8ab..61797e43d 100644
--- a/winsup/cygwin/libc/bsdlib.cc
+++ b/winsup/cygwin/libc/bsdlib.cc
@@ -181,6 +181,7 @@ warn (const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
vwarn (fmt, ap);
+ va_end (ap);
}
extern "C" void
@@ -189,6 +190,7 @@ warnx (const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
vwarnx (fmt, ap);
+ va_end (ap);
}
extern "C" void
@@ -211,6 +213,7 @@ err (int eval, const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
vwarn (fmt, ap);
+ va_end (ap);
exit (eval);
}
@@ -220,6 +223,7 @@ errx (int eval, const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
vwarnx (fmt, ap);
+ va_end (ap);
exit (eval);
}