summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-12-16 12:21:10 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-12-16 12:21:10 +0100
commit75bfef7fa1c9f71232a282aa66e52b2d1860100a (patch)
tree9cc622a55341f7fc7b0185965db2354704df0407
parentd2dc913edc7bc4e0880f4dd6eb4aff495adb8138 (diff)
parentec6230cffe6e06957113d53272d00dc859a3e617 (diff)
downloadrsyslog-75bfef7fa1c9f71232a282aa66e52b2d1860100a.tar.gz
rsyslog-75bfef7fa1c9f71232a282aa66e52b2d1860100a.tar.xz
rsyslog-75bfef7fa1c9f71232a282aa66e52b2d1860100a.zip
Merge branch 'v3-stable' into v4-stable
Conflicts: ChangeLog
-rw-r--r--ChangeLog3
-rw-r--r--runtime/conf.c2
-rw-r--r--runtime/ctok.c4
3 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index fccc946b..731939d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -633,6 +633,9 @@ version before switching to this one.
- bugfix: memory leak in ompgsql
Thanks to Ken for providing the patch
---------------------------------------------------------------------------
+Version 3.22.4 [v3-stable] (rgerhards), 2010-??-??
+- improved some code based on clang static analyzer results
+---------------------------------------------------------------------------
Version 3.22.3 [v3-stable] (rgerhards), 2010-11-24
- bugfix(important): problem in TLS handling could cause rsyslog to loop
in a tight loop, effectively disabling functionality and bearing the
diff --git a/runtime/conf.c b/runtime/conf.c
index e2d3a889..bbd2147a 100644
--- a/runtime/conf.c
+++ b/runtime/conf.c
@@ -1084,7 +1084,7 @@ static rsRetVal cflineDoAction(uchar **p, action_t **ppAction)
DEFiRet;
modInfo_t *pMod;
omodStringRequest_t *pOMSR;
- action_t *pAction;
+ action_t *pAction = NULL;
void *pModData;
ASSERT(p != NULL);
diff --git a/runtime/ctok.c b/runtime/ctok.c
index 18ddaed2..99b0e095 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);