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:46:05 +0200 |
commit | 38f657ff2ec0369c083571f4e5e30aba6f1cdbb7 (patch) | |
tree | 21d78e4c5b96184f8dbf1239a0acf73227d20bb2 | |
parent | f07c3c0d0005ab82d7528542d20fa44f0510b1f3 (diff) | |
download | rsyslog-38f657ff2ec0369c083571f4e5e30aba6f1cdbb7.tar.gz rsyslog-38f657ff2ec0369c083571f4e5e30aba6f1cdbb7.tar.bz2 rsyslog-38f657ff2ec0369c083571f4e5e30aba6f1cdbb7.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 79749e21..47378445 100644 --- a/plugins/impstats/impstats.c +++ b/plugins/impstats/impstats.c @@ -135,9 +135,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())); |