summaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-09-04 16:30:32 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-09-04 16:30:32 +0000
commit372de71a1f6df161218c7135f9b4af3119869c99 (patch)
treec4e0b1cb7834151482f95ac2f89f1d8949cc0ae3 /msg.c
parent32a4ca3304119eb074869dfc61f272cde0dc0380 (diff)
downloadrsyslog-372de71a1f6df161218c7135f9b4af3119869c99.tar.gz
rsyslog-372de71a1f6df161218c7135f9b4af3119869c99.tar.xz
rsyslog-372de71a1f6df161218c7135f9b4af3119869c99.zip
changed some calles to CStr class to their "safe" counterpart - they could
case program aborts if the object in question was an empty string
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/msg.c b/msg.c
index 6313d083..1e32195d 100644
--- a/msg.c
+++ b/msg.c
@@ -1269,7 +1269,7 @@ char *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe,
assert(pTpe != NULL);
pName = pTpe->data.field.pPropRepl;
} else {
- pName = (char*) rsCStrGetSzStr(pCSPropName);
+ pName = (char*) rsCStrGetSzStrNoNULL(pCSPropName);
}
*pbMustBeFreed = 0;