check variable
authorNam KwanWoo <kw46.nam@samsung.com>
Tue, 2 Apr 2013 08:56:37 +0000 (17:56 +0900)
committerNam KwanWoo <kw46.nam@samsung.com>
Tue, 2 Apr 2013 08:56:37 +0000 (17:56 +0900)
Change-Id: I728060e3cd9ea7199002c73c75b9e496840d8168

src/system_info_platform.c

index 58bd91922b14d27f1533588c66f10f4698a97b04..5e572c59dcf85750843e98b273357a17d48e3e8c 100644 (file)
@@ -112,7 +112,7 @@ int system_info_get_value_from_xml(char *xml_file_path, char *model, char *id_fi
                }
        }
 
-       if (*value == NULL) {
+       if (*value == NULL && default_node) {
                cur = default_node->xmlChildrenNode;
 
                for (cur_node = cur; cur_node; cur_node = cur_node->next) {