filter: untangle assignment and check in filter_init().

Michael
This commit is contained in:
Michael Adam 2009-09-14 22:18:28 +02:00
parent c8e1696a22
commit f25b0e2872

View File

@ -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);