summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d31d779)
raw | patch | inline | side by side (parent: d31d779)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 21 Feb 2014 02:07:11 +0000 (03:07 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 21 Feb 2014 02:07:11 +0000 (03:07 +0100) |
src/core/store_lookup.c | patch | blob | history |
index 089b99fb125756a0712506f8de9fbe34bc7edab4..26e466617dc29244da13a770dcc465554b5b68fd 100644 (file)
--- a/src/core/store_lookup.c
+++ b/src/core/store_lookup.c
if (! name)
name = "";
- if (m->name && (! strcasecmp(m->name, name)))
- return 0;
- if (m->name_re && (! regexec(m->name_re, name,
- /* matches */ 0, NULL, /* flags = */ 0)))
- return 0;
- return -1;
+ if (m->name && strcasecmp(m->name, name))
+ return -1;
+ if (m->name_re && regexec(m->name_re, name,
+ /* matches */ 0, NULL, /* flags = */ 0))
+ return -1;
+ return 0;
} /* match_name */
/* match attribute specific values;