path: root/syslogd.c
diff options
authorRainer Gerhards <>2008-04-07 12:14:49 +0200
committerRainer Gerhards <>2008-04-07 12:14:49 +0200
commit833f4642621699890d05c041d3ace5de24f369ba (patch)
treee25ae4913d30187cae510e486cc3ebfa0de35a37 /syslogd.c
parent65f24e82a0a6777136fe894cd236b41e05e72765 (diff)
fixed segfault when using expression based-filters
This was introduced by an invalid CVS patch.
Diffstat (limited to 'syslogd.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/syslogd.c b/syslogd.c
index f21fce7..97d700f 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -1056,6 +1056,7 @@ finalize_it:
if(pVM != NULL)
+RUNLOG_VAR("%p", var);
if(pResult != NULL)
@@ -2838,12 +2839,11 @@ InitGlobalClasses(void)
/* the following classes were intialized by objClassInit() */
CHKiRet(objUse(errmsg, CORE_COMPONENT));
CHKiRet(objUse(module, CORE_COMPONENT));
+ CHKiRet(objUse(var, CORE_COMPONENT));
/* initialize and use classes. We must be very careful with the order of events. Some
* classes use others and if we do not initialize them in the right order, we may end
* up with an invalid call. The most important thing that can happen is that an error
- pErrObj = "var";
- CHKiRet(objUse(var, CORE_COMPONENT));
* is detected and needs to be logged, wich in turn requires a broader number of classes
* to be available. The solution is that we take care in the order of calls AND use a
* class immediately after it is initialized. And, of course, we load those classes