Explorar o código

mtree: declare variables at function start

Fixes compilation for gcc < 3.0.
Andrei Pelinescu-Onciul %!s(int64=15) %!d(string=hai) anos
pai
achega
96262b5a05
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      modules/mtree/mtree.c

+ 3 - 2
modules/mtree/mtree.c

@@ -597,11 +597,12 @@ int mt_table_spec(char* val)
 	param_t* params_list = NULL;
 	param_t* params_list = NULL;
 	param_hooks_t phooks;
 	param_hooks_t phooks;
 	param_t *pit=NULL;
 	param_t *pit=NULL;
-	if(val==NULL)
-		return -1;
 	m_tree_t tmp;
 	m_tree_t tmp;
 	m_tree_t *it, *prev, *ndl;
 	m_tree_t *it, *prev, *ndl;
 	str s;
 	str s;
+	
+	if(val==NULL)
+		return -1;
 
 
 	if(!shm_initialized())
 	if(!shm_initialized())
 	{
 	{