projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
515f354
)
fd.c: Add missing va_end().
author
Andre Noll
<maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 17:32:36 +0000
(17:32 +0000)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 11 Jan 2015 14:55:47 +0000
(15:55 +0100)
This bug was introduced three years ago in commit
3e6bba77
.
Found by cppcheck.
fd.c
patch
|
blob
|
history
diff --git
a/fd.c
b/fd.c
index 3ab5cad06d1c2980b758062701b681f7761f4664..20dc07da16e49bcfc13df2a649f0c616755f889b 100644
(file)
--- a/
fd.c
+++ b/
fd.c
@@
-146,6
+146,7
@@
__printf_2_3 int write_va_buffer(int fd, const char *fmt, ...)
va_start(ap, fmt);
ret = xvasprintf(&msg, fmt, ap);
va_start(ap, fmt);
ret = xvasprintf(&msg, fmt, ap);
+ va_end(ap);
ret = write_all(fd, msg, ret);
free(msg);
return ret;
ret = write_all(fd, msg, ret);
free(msg);
return ret;