Просмотр исходного кода

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

Paul-Dieter Klumpp 2 лет назад
Родитель
Сommit
d5aecb620a
1 измененных файлов с 2 добавлено и 3 удалено
  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.