Forráskód Böngészése

had problems starting when no http config was specified (uninitialized var)

Paul-Dieter Klumpp 3 éve
szülő
commit
d5aecb620a
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      cims.tcl

+ 2 - 3
cims.tcl

@@ -1850,15 +1850,14 @@ proc ::cims::netconfigload {} {
 	variable mnet_http_config
 	variable mnet_local_config
 	variable mnet_config
-  variable mnet_num_configs
-
-	putlog "debug:: $mnet_http_config"
+	variable mnet_num_configs
 
 	# possible methods to load a config are: get_httpfile and get_localfile
 	# get_httpfile 
 	# get_localfile RELATIVE_PATH_AND_FILE
 	set x 0
 	if {[info exists mnet_http_config]} {
+		putlog "debug:: $mnet_http_config"
 		foreach {host httpfile port} $mnet_http_config {
 			# FIXME config validating.. is the file received correctly? or do
 			# we only have a 404 error message there? ... bad thing still.