0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

In case no startup function is defined, don't try to launch it.

This commit is contained in:
Pavel Machek 1999-04-12 12:01:59 +00:00
parent ed9a82369f
commit 8ba2cc064b

View File

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