瀏覽代碼

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

Paul-Dieter Klumpp 3 年之前
父節點
當前提交
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.