summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-02 16:11:13 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-02 16:11:13 +0200
commit21aef2dffdc958cd92c7ac174fc398b4265acd6d (patch)
tree295859a9ba136e78ff5f274a55e660ec237cbb0a
parent36bfaf63485a444d58ca359191377b6694720a37 (diff)
downloadrsyslog-21aef2dffdc958cd92c7ac174fc398b4265acd6d.tar.gz
rsyslog-21aef2dffdc958cd92c7ac174fc398b4265acd6d.tar.xz
rsyslog-21aef2dffdc958cd92c7ac174fc398b4265acd6d.zip
bugfix[minor]: CHKiRet improperly used
-rw-r--r--runtime/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/modules.c b/runtime/modules.c
index bd201252..871f356a 100644
--- a/runtime/modules.c
+++ b/runtime/modules.c
@@ -383,7 +383,7 @@ doModInit(rsRetVal (*modInit)(int, int*, rsRetVal(**)(), rsRetVal(*)(), modInfo_
* can never change in the lifetime of an module. -- rgerhards, 2007-12-14
*/
CHKiRet((*pNew->modQueryEtryPt)((uchar*)"getType", &modGetType));
- CHKiRet((iRet = (*modGetType)(&pNew->eType)) != RS_RET_OK);
+ CHKiRet((*modGetType)(&pNew->eType));
dbgprintf("module of type %d being loaded.\n", pNew->eType);
/* OK, we know we can successfully work with the module. So we now fill the