diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 12:57:55 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-12-16 12:57:55 +0100 |
commit | 371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329 (patch) | |
tree | 661f442e4e5c61f56e72241830703267ae08e38b /runtime/queue.c | |
parent | 75bfef7fa1c9f71232a282aa66e52b2d1860100a (diff) | |
download | rsyslog-371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329.tar.gz rsyslog-371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329.tar.xz rsyslog-371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329.zip |
some cleanup based on clang static analyzer results
Diffstat (limited to 'runtime/queue.c')
-rw-r--r-- | runtime/queue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/queue.c b/runtime/queue.c index 9d7a9058..39898718 100644 --- a/runtime/queue.c +++ b/runtime/queue.c @@ -685,7 +685,6 @@ qqueueHaveQIF(qqueue_t *pThis) { DEFiRet; uchar pszQIFNam[MAXFNAME]; - size_t lenQIFNam; struct stat stat_buf; ISOBJ_TYPE_assert(pThis, qqueue); @@ -694,8 +693,8 @@ qqueueHaveQIF(qqueue_t *pThis) ABORT_FINALIZE(RS_RET_NO_FILEPREFIX); /* Construct file name */ - lenQIFNam = snprintf((char*)pszQIFNam, sizeof(pszQIFNam) / sizeof(uchar), "%s/%s.qi", - (char*) glbl.GetWorkDir(), (char*)pThis->pszFilePrefix); + snprintf((char*)pszQIFNam, sizeof(pszQIFNam) / sizeof(uchar), "%s/%s.qi", + (char*) glbl.GetWorkDir(), (char*)pThis->pszFilePrefix); /* check if the file exists */ if(stat((char*) pszQIFNam, &stat_buf) == -1) { |