summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-12-16 12:57:55 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-12-16 12:57:55 +0100
commit371a8eec29fa25bbf58f4b1f0d7e3bf4c3ad6329 (patch)
tree661f442e4e5c61f56e72241830703267ae08e38b /runtime/queue.c
parent75bfef7fa1c9f71232a282aa66e52b2d1860100a (diff)
downloadrsyslog-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.c5
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) {