diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 12:16:54 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 12:16:54 +0100 |
commit | ec6230cffe6e06957113d53272d00dc859a3e617 (patch) | |
tree | 0727d3a3e39c99317c5d5bb562ea027e52f1017f /runtime/ctok.c | |
parent | 925504d565c6cf4a712dd8c8217891662aaf639e (diff) | |
download | rsyslog-ec6230cffe6e06957113d53272d00dc859a3e617.tar.gz rsyslog-ec6230cffe6e06957113d53272d00dc859a3e617.tar.xz rsyslog-ec6230cffe6e06957113d53272d00dc859a3e617.zip |
improved some code based on clang static analyzer results
Diffstat (limited to 'runtime/ctok.c')
-rw-r--r-- | runtime/ctok.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ctok.c b/runtime/ctok.c index 71a10a20..7dd5f8b0 100644 --- a/runtime/ctok.c +++ b/runtime/ctok.c @@ -1,4 +1,4 @@ -/* cfgtok.c - helper class to tokenize an input stream - which surprisingly +/* ctok.c - helper class to tokenize an input stream - which surprisingly * currently does not work with streams but with string. But that will * probably change over time ;) This class was originally written to support * the expression module but may evolve when (if) the expression module is @@ -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); |