From: Pavel Machek Date: Mon, 12 Apr 1999 12:01:59 +0000 (+0000) Subject: In case no startup function is defined, don't try to launch it. X-Git-Tag: v1.2.0~1616 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ba2cc064b823274e8af043bf0676bfc252e810a;p=thirdparty%2Fbird.git In case no startup function is defined, don't try to launch it. --- diff --git a/filter/filter.c b/filter/filter.c index 4f23d1f0b..902f7f7f7 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" ); + } }