diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 12:02:36 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 12:02:36 +0100 |
commit | 7817aa1597384fce7ac643e56ee56f47d3c5d37d (patch) | |
tree | 3084fe8a0368f3a4602c49c287fa339b7c3daa28 /plugins | |
parent | c4026ec0f8d843540d01b07f94d4182d7dddb62e (diff) | |
download | rsyslog-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 'plugins')
-rw-r--r-- | plugins/omtesting/omtesting.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/omtesting/omtesting.c b/plugins/omtesting/omtesting.c index 9442f691..c474bb41 100644 --- a/plugins/omtesting/omtesting.c +++ b/plugins/omtesting/omtesting.c @@ -188,8 +188,10 @@ CODESTARTdoAction break; case MD_RANDFAIL: iRet = doRandFail(); + break; case MD_ALWAYS_SUSPEND: iRet = RS_RET_SUSPENDED; + break; } if(iRet == RS_RET_OK && pData->bEchoStdout) { |