summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-04-12 14:01:59 +0200
committerPavel Machek <pavel@ucw.cz>1999-04-12 14:01:59 +0200
commit8ba2cc064b823274e8af043bf0676bfc252e810a (patch)
treee6c52ec65eff8e15519571d5d3b288e7d015a085 /filter
parented9a82369ffc660ec20d9b7fa64188a450267672 (diff)
downloadbird-8ba2cc064b823274e8af043bf0676bfc252e810a.tar
bird-8ba2cc064b823274e8af043bf0676bfc252e810a.zip
In case no startup function is defined, don't try to launch it.
Diffstat (limited to 'filter')
-rw-r--r--filter/filter.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 4f23d1f..902f7f7 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -203,10 +203,11 @@ void
filters_postconfig(void)
{
struct f_val res;
- printf( "Launching startup function...\n" );
- if (startup_func)
+ if (startup_func) {
+ printf( "Launching startup function...\n" );
res = interpret(startup_func);
- if (res.type = F_ERROR)
- die( "Startup function resulted in error." );
- printf( "done\n" );
+ if (res.type = F_ERROR)
+ die( "Startup function resulted in error." );
+ printf( "done\n" );
+ }
}