summaryrefslogtreecommitdiff
path: root/libbb/info_msg.c
diff options
context:
space:
mode:
authorDenys Vlasenko2009-12-13 17:42:49 +0100
committerDenys Vlasenko2009-12-13 17:42:49 +0100
commit78fcec4dc700dde189b0149ddfb53d321c4c75be (patch)
tree58a7f2d86e609da04a0d0af0940853a18591277e /libbb/info_msg.c
parentaa42d13e320250d3573c6be975876a612c00e91f (diff)
downloadbusybox-78fcec4dc700dde189b0149ddfb53d321c4c75be.zip
busybox-78fcec4dc700dde189b0149ddfb53d321c4c75be.tar.gz
crond: do not log info messages at LOG_ERR. Closes bug 681. +62 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/info_msg.c')
-rw-r--r--libbb/info_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/info_msg.c b/libbb/info_msg.c
index 5f375d4..bc9d23b 100644
--- a/libbb/info_msg.c
+++ b/libbb/info_msg.c
@@ -38,6 +38,7 @@ void FAST_FUNC bb_info_msg(const char *s, ...)
va_start(p, s);
used = vasprintf(&msg, s, p);
+ va_end(p);
if (used < 0)
return;
@@ -51,6 +52,5 @@ void FAST_FUNC bb_info_msg(const char *s, ...)
}
free(msg);
- va_end(p);
#endif
}