From db73a31ec8269d26d1e61bc6d7889495d23d7d99 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 3 Aug 2015 16:02:02 +0800 Subject: [PATCH] [Kernel] Fix compiling warning. --- src/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object.c b/src/object.c index 6c5a1a026f..ae8234f47d 100644 --- a/src/object.c +++ b/src/object.c @@ -401,8 +401,8 @@ rt_bool_t rt_object_is_systemobject(rt_object_t object) */ rt_object_t rt_object_find(const char *name, rt_uint8_t type) { - struct rt_object *object; - struct rt_list_node *node; + struct rt_object *object = RT_NULL; + struct rt_list_node *node = RT_NULL; struct rt_object_information *information = RT_NULL; /* parameter check */