From 8a960a86f57e1bad6248e508d82e42d562af04b8 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Thu, 15 Mar 2012 14:20:06 +0000 Subject: [PATCH] fixed finsh_sysvar_append bug. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1996 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/finsh/finsh_var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/finsh/finsh_var.c b/components/finsh/finsh_var.c index fc2fa27ae..7d8cde709 100644 --- a/components/finsh/finsh_var.c +++ b/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; } } } -- GitLab