diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-13 18:11:02 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-13 18:11:02 +0100 |
commit | 824b8c5d45771dd27693c33da54db709b8e6207a (patch) | |
tree | cabb6d32687521800649623c56f745d9e3afd753 /tools/omfile.c | |
parent | e97b65ca17e5285d31c7e1b807ac5e17eb395174 (diff) | |
download | rsyslog-824b8c5d45771dd27693c33da54db709b8e6207a.tar.gz rsyslog-824b8c5d45771dd27693c33da54db709b8e6207a.tar.bz2 rsyslog-824b8c5d45771dd27693c33da54db709b8e6207a.zip |
regression fix: failure if more than one template was to process
Diffstat (limited to 'tools/omfile.c')
-rw-r--r-- | tools/omfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/omfile.c b/tools/omfile.c index 90efe71a..1ee1026c 100644 --- a/tools/omfile.c +++ b/tools/omfile.c @@ -960,6 +960,7 @@ bufferLine(wrkrInstanceData_t *pWrkrData, uchar *filename, uchar *line) DEFiRet; CHKmalloc(lb = (linebuf_t*) malloc(sizeof(linebuf_t))); +dbgprintf("DDDD: filename '%s'\n", filename); CHKmalloc(lb->filename = ustrdup(filename)); CHKmalloc(lb->ln = ustrdup(line)); lb->pNext = NULL; @@ -1004,6 +1005,7 @@ BEGINdoAction instanceData *pData; CODESTARTdoAction pData = pWrkrData->pData; +dbgprintf("DDDD: bDynName %d, filename '%s'\n", pData->bDynamicName, ppString[1]); iRet = bufferLine(pWrkrData, (pData->bDynamicName) ? ppString[1] : pData->f_fname, ppString[0]); if(iRet == RS_RET_OK) |