summaryrefslogtreecommitdiffstats
path: root/cfsysline.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-20 11:26:46 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-20 11:26:46 +0000
commit89afe21362f446b50f4f8b360697a0a9568ac80a (patch)
treed3c7d98d058311d73ec11f5b6d62f1cfffb6cd1d /cfsysline.c
parentee9b196128db5c6a30918c795f5adcdd2adaca45 (diff)
downloadrsyslog-89afe21362f446b50f4f8b360697a0a9568ac80a.tar.gz
rsyslog-89afe21362f446b50f4f8b360697a0a9568ac80a.tar.xz
rsyslog-89afe21362f446b50f4f8b360697a0a9568ac80a.zip
previous fix had a problem - corrected
Diffstat (limited to 'cfsysline.c')
-rw-r--r--cfsysline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cfsysline.c b/cfsysline.c
index cf5def0a..c4d81438 100644
--- a/cfsysline.c
+++ b/cfsysline.c
@@ -388,8 +388,8 @@ static rsRetVal doGetWord(uchar **pp, rsRetVal (*pSetHdlr)(void*, uchar*), void
/* we got the word, now set it */
if(pSetHdlr == NULL) {
/* we should set value directly to var */
- if(pVal != NULL)
- free(pVal); /* free previous entry */
+ if(*((uchar**)pVal) != NULL)
+ free(*((uchar**)pVal)); /* free previous entry */
*((uchar**)pVal) = pNewVal; /* set new one */
} else {
/* we set value via a set function */