summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */