Explorar o código

[Kernel] Fix compiling warning.

Bernard Xiong %!s(int64=9) %!d(string=hai) anos
pai
achega
db73a31ec8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/object.c

+ 2 - 2
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 */