summaryrefslogtreecommitdiffstats
path: root/tools/omfile.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 /tools/omfile.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 'tools/omfile.c')
-rw-r--r--tools/omfile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index 24de052c..487cf8a0 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -353,7 +353,6 @@ prepareFile(instanceData *pData, uchar *newFileName)
if(access((char*)newFileName, F_OK) != 0) {
/* file does not exist, create it (and eventually parent directories */
- fd = -1;
if(pData->bCreateDirs) {
/* We first need to create parent dirs if they are missing.
* We do not report any errors here ourselfs but let the code