summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/xmlconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/xmlconfig.c b/src/util/xmlconfig.c
index 4b77ea7624f..64363522d2f 100644
--- a/src/util/xmlconfig.c
+++ b/src/util/xmlconfig.c
@@ -794,7 +794,7 @@ parseEngineAttr(struct OptConfData *data, const XML_Char **attr)
if (engine_name_match) {
regex_t re;
- if (regcomp (&re, engine_name_match, REG_EXTENDED|REG_NOSUB) != 0) {
+ if (regcomp (&re, engine_name_match, REG_EXTENDED|REG_NOSUB) == 0) {
if (regexec (&re, data->engineName, 0, NULL, 0) == REG_NOMATCH)
data->ignoringApp = data->inApp;
regfree (&re);