From: Florian Forster Date: Sat, 22 Nov 2008 00:00:41 +0000 (+0100) Subject: match_regex plugin: Fix a typo. X-Git-Tag: collectd-4.6.0~156^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=acdee2de9cd33d85bc7b37d009ba341772d80678;p=collectd.git match_regex plugin: Fix a typo. --- 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.");