]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
In case no startup function is defined, don't try to launch it.
authorPavel Machek <pavel@ucw.cz>
Mon, 12 Apr 1999 12:01:59 +0000 (12:01 +0000)
committerPavel Machek <pavel@ucw.cz>
Mon, 12 Apr 1999 12:01:59 +0000 (12:01 +0000)
filter/filter.c

index 4f23d1f0b282d37eaf21f63074bada1c54104eb8..902f7f7f709dc3da45dc34a2750dffc7c376ffe2 100644 (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" );
+  }
 }