From f25b0e287237584425bc973b5f9e843d785120d7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 14 Sep 2009 22:18:28 +0200 Subject: filter: untangle assignment and check in filter_init(). Michael --- src/filter.c | 4 ++-- 1 file 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); -- cgit v1.2.3