projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
292c381
)
Fix missing va_end call in uip/mhmisc.c
author
Dmitry Bogatov
<KAction@gnu.org>
Sat, 27 Aug 2016 08:40:15 +0000
(11:40 +0300)
committer
Philipp Takacs
<philipp@bureaucracy.de>
Sun, 28 Aug 2016 20:00:27 +0000
(22:00 +0200)
uip/mhmisc.c
patch
|
blob
|
history
diff --git
a/uip/mhmisc.c
b/uip/mhmisc.c
index
eb29e83
..
8e20fa9
100644
(file)
--- a/
uip/mhmisc.c
+++ b/
uip/mhmisc.c
@@
-146,7
+146,6
@@
losing_directory:
void
content_error(char *what, CT ct, char *fmt, ...)
{
- va_list arglist;
int i, len, buflen;
char *bp, buffer[BUFSIZ];
CI ci;
@@
-161,9
+160,13
@@
content_error(char *what, CT ct, char *fmt, ...)
buflen -= len;
}
- va_start(arglist, fmt);
+ {
+ va_list arglist;
- vsnprintf(bp, buflen, fmt, arglist);
+ va_start(arglist, fmt);
+ vsnprintf(bp, buflen, fmt, arglist);
+ va_end(arglist);
+ }
len = strlen(bp);
bp += len;
buflen -= len;