diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-18 07:18:46 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-18 07:18:46 +0200 |
commit | 099968a1dffe195664f6ebcfac3bfa3f3a942e7a (patch) | |
tree | ace295db8e560190b456d39b3f526c0f12679f4d | |
parent | 35521bde507252183b000bf4809ea3ad06333fbe (diff) | |
download | rsyslog-099968a1dffe195664f6ebcfac3bfa3f3a942e7a.tar.gz rsyslog-099968a1dffe195664f6ebcfac3bfa3f3a942e7a.tar.bz2 rsyslog-099968a1dffe195664f6ebcfac3bfa3f3a942e7a.zip |
remove compiler warning
-rw-r--r-- | plugins/impstats/impstats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/impstats/impstats.c b/plugins/impstats/impstats.c index 42d7c1c2..b842a2b3 100644 --- a/plugins/impstats/impstats.c +++ b/plugins/impstats/impstats.c @@ -153,9 +153,9 @@ static inline void doSubmitMsg(uchar *line) { msg_t *pMsg; - DEFiRet; - CHKiRet(msgConstruct(&pMsg)); + if(msgConstruct(&pMsg) != RS_RET_OK) + goto finalize_it; MsgSetInputName(pMsg, pInputName); MsgSetRawMsgWOSize(pMsg, (char*)line); MsgSetHOSTNAME(pMsg, glbl.GetLocalHostName(), ustrlen(glbl.GetLocalHostName())); |