diff options
author | Michael Adam <obnox@samba.org> | 2009-09-14 22:18:28 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-09-14 22:18:28 +0200 |
commit | f25b0e287237584425bc973b5f9e843d785120d7 (patch) | |
tree | 5233f681d184b4e6daa5f9a6eefb62c48e199d83 /src | |
parent | c8e1696a223b82f1ba2cf254c73537ca4a5bdb4b (diff) | |
download | tinyproxy-f25b0e287237584425bc973b5f9e843d785120d7.tar.gz tinyproxy-f25b0e287237584425bc973b5f9e843d785120d7.zip |
filter: untangle assignment and check in filter_init().
Michael
Diffstat (limited to '')
-rw-r--r-- | src/filter.c | 4 |
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); |