summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Tomaschewski <mt@suse.de>2013-05-14 15:36:50 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-05-14 15:36:50 +0200
commit4341b2a37d5bc1bda71e949577c28c0cd8225e9b (patch)
tree885277d8c3c647310d758fcf79b4b412b733847e
parentf11e7218f81136ec556d75091a6b9954fc1f9a4e (diff)
downloadrsyslog-4341b2a37d5bc1bda71e949577c28c0cd8225e9b.tar.gz
rsyslog-4341b2a37d5bc1bda71e949577c28c0cd8225e9b.tar.bz2
rsyslog-4341b2a37d5bc1bda71e949577c28c0cd8225e9b.zip
cosmetic: reduce compiler warning
init variable that does not really need to be initialized, as it is immediately overwritten - but the compiler is not smart enough to see that
-rw-r--r--runtime/stringbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stringbuf.c b/runtime/stringbuf.c
index 0d8e7e83..cb4f0457 100644
--- a/runtime/stringbuf.c
+++ b/runtime/stringbuf.c
@@ -312,7 +312,7 @@ rsRetVal rsCStrAppendStrf(cstr_t *pThis, uchar *fmt, ...)
{
DEFiRet;
va_list ap;
- cstr_t *pStr;
+ cstr_t *pStr = NULL;
va_start(ap, fmt);
iRet = rsCStrConstructFromszStrv(&pStr, fmt, ap);