summaryrefslogtreecommitdiff
path: root/usr.bin/pcc/mip/common.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-09-18 07:22:02 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-09-18 07:22:02 +0000
commit9feed95663cbb14182ce08d6417b5b692d6a0b23 (patch)
tree64a9caba20a5cfc972b473b2f293e1d5e8acdefd /usr.bin/pcc/mip/common.c
parent66e63ad247d38bcd81851a747a9c27c90a6588dd (diff)
merge fomr ragge's repo:
Added missing va_end in werror(), from Graham Gower.
Diffstat (limited to 'usr.bin/pcc/mip/common.c')
-rw-r--r--usr.bin/pcc/mip/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/pcc/mip/common.c b/usr.bin/pcc/mip/common.c
index 0f8e88cbf28..b943a22aef8 100644
--- a/usr.bin/pcc/mip/common.c
+++ b/usr.bin/pcc/mip/common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.c,v 1.4 2007/09/17 07:40:06 otto Exp $ */
+/* $OpenBSD: common.c,v 1.5 2007/09/18 07:22:01 otto Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -136,6 +136,7 @@ werror(char *s, ...)
fprintf(stderr, "warning: ");
vfprintf(stderr, s, ap);
fprintf(stderr, "\n");
+ va_end(ap);
}
#ifndef MKEXT