From fd6c856b34c8fda53b7e45e3dcc17625206ed4fb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 Jul 2011 17:35:29 +0400 Subject: Add workaround for clang under linux. Fix problems found by static analyzing. --- src/cfg_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cfg_xml.c') diff --git a/src/cfg_xml.c b/src/cfg_xml.c index 9920f355c..27667649d 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -1611,7 +1611,7 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam *error = g_error_new (xml_error_quark (), XML_PARAM_MISSING, "param 'condition' is required for tag 'if'"); ud->state = XML_ERROR; } - if (! lua_check_condition (ud->cfg, condition)) { + else if (! lua_check_condition (ud->cfg, condition)) { ud->state = XML_SKIP_ELEMENTS; } return; -- cgit v1.2.3