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 4353b3a..e0ab7bd 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.");