Explorar el Código

fixed finsh_sysvar_append bug.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1996 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong@gmail.com hace 13 años
padre
commit
8a960a86f5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      components/finsh/finsh_var.c

+ 1 - 1
components/finsh/finsh_var.c

@@ -108,7 +108,7 @@ void finsh_sysvar_append(const char* name, u_char type, void* var_addr)
 		else
 		{
 			item->next = global_sysvar_list;
-			global_sysvar_list->next = item;
+			global_sysvar_list = item;
 		}
 	}
 }