From acdee2de9cd33d85bc7b37d009ba341772d80678 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 22 Nov 2008 01:00:41 +0100 Subject: [PATCH] match_regex plugin: Fix a typo. --- src/match_regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/match_regex.c b/src/match_regex.c index 4353b3a7..e0ab7bd7 100644 --- a/src/match_regex.c +++ b/src/match_regex.c @@ -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."); -- 2.30.2