Explorar el Código

core: define core tokens before parsing config file

Daniel-Constantin Mierla hace 7 años
padre
commit
95fc59a0bc
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/main.c

+ 2 - 1
src/main.c

@@ -1952,6 +1952,8 @@ int main(int argc, char** argv)
 	init_tcp_options(); /* set the defaults before the config */
 #endif
 
+	pp_define_core();
+
 	/* process command line (cfg. file path etc) */
 	optind = 1;  /* reset getopt */
 	/* switches required before script processing */
@@ -2155,7 +2157,6 @@ try_again:
 	}
 	if (debug_flag) default_core_cfg.debug = debug_save;
 	pp_ifdef_level_check();
-	pp_define_core();
 	print_rls();
 
 	if(init_dst_set()<0) {