summaryrefslogtreecommitdiffstats
path: root/runtime/ctok.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-12-16 12:02:36 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-12-16 12:02:36 +0100
commit7817aa1597384fce7ac643e56ee56f47d3c5d37d (patch)
tree3084fe8a0368f3a4602c49c287fa339b7c3daa28 /runtime/ctok.c
parentc4026ec0f8d843540d01b07f94d4182d7dddb62e (diff)
downloadrsyslog-7817aa1597384fce7ac643e56ee56f47d3c5d37d.tar.gz
rsyslog-7817aa1597384fce7ac643e56ee56f47d3c5d37d.tar.xz
rsyslog-7817aa1597384fce7ac643e56ee56f47d3c5d37d.zip
bugfix: unitialized variable could cause issues under extreme conditions
plus some minor nits. This was found after a clang static code analyzer analysis (great tool, and special thanks to Marcin for telling me about it!)
Diffstat (limited to 'runtime/ctok.c')
-rw-r--r--runtime/ctok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ctok.c b/runtime/ctok.c
index 18ddaed2..a17d0ec9 100644
--- a/runtime/ctok.c
+++ b/runtime/ctok.c
@@ -267,7 +267,7 @@ ctokGetVar(ctok_t *pThis, ctok_token_t *pToken)
{
DEFiRet;
uchar c;
- cstr_t *pstrVal;
+ cstr_t *pstrVal = NULL;
ISOBJ_TYPE_assert(pThis, ctok);
ASSERT(pToken != NULL);