diff options
author | Pavel Machek <pavel@ucw.cz> | 1999-04-12 14:01:59 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1999-04-12 14:01:59 +0200 |
commit | 8ba2cc064b823274e8af043bf0676bfc252e810a (patch) | |
tree | e6c52ec65eff8e15519571d5d3b288e7d015a085 | |
parent | ed9a82369ffc660ec20d9b7fa64188a450267672 (diff) | |
download | bird-8ba2cc064b823274e8af043bf0676bfc252e810a.tar bird-8ba2cc064b823274e8af043bf0676bfc252e810a.zip |
In case no startup function is defined, don't try to launch it.
-rw-r--r-- | filter/filter.c | 11 |
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" ); + } } |