summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.c b/src/filter.c
index 7a34583..9ec7858 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -115,8 +115,8 @@ void filter_init (void)
p->pat = safestrdup (s);
p->cpat =
(regex_t *) safemalloc (sizeof (regex_t));
- if ((err =
- regcomp (p->cpat, p->pat, cflags)) != 0) {
+ err = regcomp (p->cpat, p->pat, cflags);
+ if (err != 0) {
fprintf (stderr,
"Bad regex in %s: %s\n",
config.filter, p->pat);