Code

match_regex plugin: Fix a typo.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 22 Nov 2008 00:00:41 +0000 (01:00 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 22 Nov 2008 00:00:41 +0000 (01:00 +0100)
src/match_regex.c

index 4353b3a76ed60cbb4f87f36a2c16bb4e4c3c9e02..e0ab7bd70917295300abd59bb87204a7945ab369 100644 (file)
@@ -133,7 +133,7 @@ static int mr_config_add_regex (mr_regex_t **re_head, /* {{{ */
        re->next = NULL;
 
        re->re_str = strdup (ci->values[0].value.string);
-       if (re->re_str)
+       if (re->re_str == NULL)
        {
                free (re);
                log_err ("mr_config_add_regex: strdup failed.");