artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb92d41
)
Fix 1.26; kdoprnt() should not attempt to invoke va_end() at all, it's the
author
miod
<miod@openbsd.org>
Sun, 14 Jun 2015 10:55:50 +0000
(10:55 +0000)
committer
miod
<miod@openbsd.org>
Sun, 14 Jun 2015 10:55:50 +0000
(10:55 +0000)
caller's responsibility to do so.
sys/lib/libsa/printf.c
patch
|
blob
|
history
diff --git
a/sys/lib/libsa/printf.c
b/sys/lib/libsa/printf.c
index
bf8edd9
..
0b3b540
100644
(file)
--- a/
sys/lib/libsa/printf.c
+++ b/
sys/lib/libsa/printf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: printf.c,v 1.2
6 2015/03/10 21:07:24
miod Exp $ */
+/* $OpenBSD: printf.c,v 1.2
7 2015/06/14 10:55:50
miod Exp $ */
/* $NetBSD: printf.c,v 1.10 1996/11/30 04:19:21 gwr Exp $ */
/*-
@@
-96,10
+96,8
@@
kdoprnt(void (*put)(int), const char *fmt, va_list ap)
for (;;) {
while ((ch = *fmt++) != '%') {
- if (ch == '\0') {
- va_end(ap);
+ if (ch == '\0')
return;
- }
put(ch);
}
lflag = 0;