summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-09-14 22:18:28 +0200
committerMichael Adam <obnox@samba.org>2009-09-14 22:18:28 +0200
commitf25b0e287237584425bc973b5f9e843d785120d7 (patch)
tree5233f681d184b4e6daa5f9a6eefb62c48e199d83
parentc8e1696a223b82f1ba2cf254c73537ca4a5bdb4b (diff)
downloadtinyproxy-f25b0e287237584425bc973b5f9e843d785120d7.tar.gz
tinyproxy-f25b0e287237584425bc973b5f9e843d785120d7.zip
filter: untangle assignment and check in filter_init().
Michael
-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);