targets/plc_common_main.c
changeset 386 2932b0dd437c
parent 366 cd90e4c10261
child 397 6a7ff66a811d
--- a/targets/plc_common_main.c	Tue Sep 01 10:45:07 2009 +0200
+++ b/targets/plc_common_main.c	Wed Sep 02 13:38:47 2009 +0200
@@ -58,12 +58,12 @@
  **/
 int __init(int argc,char **argv)
 {
-    int res;
+    int res = 0;
     setlocale(LC_NUMERIC, "C");
     config_init__();
     __init_debug();
     %(init_calls)s
-    return 0;
+    return res;
 }
 /*
  * Calls plugin cleanup proc.