summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-30 16:51:07 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-30 16:51:07 +0100
commit154147307442d572de930f09363b144c06802ca1 (patch)
tree643e121f5042a47ac3d5d7dc3d8c438f0857feff /template.c
parent2f02a706a87309bdae65625cb8be8ace35589a3a (diff)
downloadrsyslog-154147307442d572de930f09363b144c06802ca1.zip
rsyslog-154147307442d572de930f09363b144c06802ca1.tar.gz
rsyslog-154147307442d572de930f09363b144c06802ca1.tar.xz
some cleanup (removal of debug code)
Diffstat (limited to 'template.c')
-rw-r--r--template.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/template.c b/template.c
index 7b3c83a..06cad21 100644
--- a/template.c
+++ b/template.c
@@ -86,7 +86,6 @@ rsRetVal tplToString(struct template *pTpl, msg_t *pMsg, uchar **ppBuf, size_t *
unsigned short bMustBeFreed;
uchar *pVal;
size_t iLenVal;
-int propid = -1;
assert(pTpl != NULL);
assert(pMsg != NULL);
@@ -102,12 +101,10 @@ int propid = -1;
iBuf = 0;
while(pTpe != NULL) {
if(pTpe->eEntryType == CONSTANT) {
-propid = -1;
pVal = (uchar*) pTpe->data.constant.pConstant;
iLenVal = pTpe->data.constant.iLenConstant;
bMustBeFreed = 0;
} else if(pTpe->eEntryType == FIELD) {
-propid = pTpe->data.field.propid;
pVal = (uchar*) MsgGetProp(pMsg, pTpe, pTpe->data.field.propid, &iLenVal, &bMustBeFreed);
/* we now need to check if we should use SQL option. In this case,
* we must go over the generated string and escape '\'' characters.
@@ -121,7 +118,6 @@ propid = pTpe->data.field.propid;
doSQLEscape(&pVal, &iLenVal, &bMustBeFreed, 0);
}
/* got source, now copy over */
-//dbgprintf("copying prop id %3d (entry type %d) of length %d ('%s')\n", propid, pTpe->eEntryType, (int) iLenVal, pVal);
if(iBuf + iLenVal >= *pLenBuf) /* we reserve one char for the final \0! */
CHKiRet(ExtendBuf(ppBuf, pLenBuf, iBuf + iLenVal + 1));