aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckerrlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ckerrlog.c')
-rw-r--r--src/ckerrlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ckerrlog.c b/src/ckerrlog.c
index cfafb39..fe4c688 100644
--- a/src/ckerrlog.c
+++ b/src/ckerrlog.c
@@ -16,7 +16,7 @@
ERRLOG(logger);
static int loglvl;
-static char buf[STR_M];
+static char buf[STR_M] = "";
#define X(stream) static cklist *stream;
CK_STREAMS
@@ -44,7 +44,7 @@ void log_command(int argc,const char* argv[]) {
void add_ ## stream ## _with_delim(const char *delim, \
const char *txt, \
va_list args) { \
- char tmp[STR_L]; \
+ char tmp[STR_L] = ""; \
vsprintf(tmp, txt, args); \
if (stream) { \
list_add(stream, tmp); \