summaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-05-14 18:37:23 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-05-14 18:37:23 +0200
commit8aea6a1d9d5a623018747844b65cf6c0dfd57192 (patch)
treea1196550d2797408527abe9de57cbc91ee64c41f /conf.c
parentaa983c583b694d878c034bee9d157333f8e2e883 (diff)
downloadrsyslog-8aea6a1d9d5a623018747844b65cf6c0dfd57192.tar.gz
rsyslog-8aea6a1d9d5a623018747844b65cf6c0dfd57192.tar.xz
rsyslog-8aea6a1d9d5a623018747844b65cf6c0dfd57192.zip
bugfix: some whitespaces where incorrectly not ignored
when parsing the config file. This is now corrected. Thanks to Michael Biebl for pointing out the problem.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index f87ab992..5f0dca0f 100644
--- a/conf.c
+++ b/conf.c
@@ -230,6 +230,7 @@ doModLoad(uchar **pp, __attribute__((unused)) void* pVal)
ASSERT(pp != NULL);
ASSERT(*pp != NULL);
+ skipWhiteSpace(pp); /* skip over any whitespace */
if(getSubString(pp, (char*) szName, sizeof(szName) / sizeof(uchar), ' ') != 0) {
errmsg.LogError(NO_ERRCODE, "could not extract module name");
ABORT_FINALIZE(RS_RET_NOT_FOUND);