summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a0d78f)
raw | patch | inline | side by side (parent: 1a0d78f)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 22 Nov 2008 00:00:41 +0000 (01:00 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 22 Nov 2008 00:00:41 +0000 (01:00 +0100) |
src/match_regex.c | patch | blob | history |
diff --git a/src/match_regex.c b/src/match_regex.c
index 4353b3a76ed60cbb4f87f36a2c16bb4e4c3c9e02..e0ab7bd70917295300abd59bb87204a7945ab369 100644 (file)
--- a/src/match_regex.c
+++ b/src/match_regex.c
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.");