filter: reduce indentation in filter_init by 16 characters by using return.
Michael
This commit is contained in:
parent
9594b8889e
commit
93b00446b9
12
src/filter.c
12
src/filter.c
@ -54,9 +54,15 @@ void filter_init (void)
|
|||||||
char *s;
|
char *s;
|
||||||
int cflags;
|
int cflags;
|
||||||
|
|
||||||
if (!fl && !already_init) {
|
if (fl || already_init) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fd = fopen (config.filter, "r");
|
fd = fopen (config.filter, "r");
|
||||||
if (fd) {
|
if (!fd) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
p = NULL;
|
p = NULL;
|
||||||
|
|
||||||
cflags = REG_NEWLINE | REG_NOSUB;
|
cflags = REG_NEWLINE | REG_NOSUB;
|
||||||
@ -131,8 +137,6 @@ void filter_init (void)
|
|||||||
|
|
||||||
already_init = 1;
|
already_init = 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* unlink the list */
|
/* unlink the list */
|
||||||
void filter_destroy (void)
|
void filter_destroy (void)
|
||||||
|
Loading…
Reference in New Issue
Block a user