Commit 8ba2cc06 authored by Pavel Machek's avatar Pavel Machek
Browse files

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

parent ed9a8236
......@@ -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" );
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment