diff --git a/libdaemon/client/config-util.c b/libdaemon/client/config-util.c index 9b893c61c..1f4b55b3e 100644 --- a/libdaemon/client/config-util.c +++ b/libdaemon/client/config-util.c @@ -23,7 +23,7 @@ int buffer_append_vf(struct buffer *buf, va_list ap) { - char *append = NULL; + char *append; char *next; int keylen; int64_t value; @@ -31,6 +31,7 @@ int buffer_append_vf(struct buffer *buf, va_list ap) char *block; while ((next = va_arg(ap, char *))) { + append = NULL; if (!strchr(next, '=')) { log_error(INTERNAL_ERROR "Bad format string at '%s'", next); goto fail;