fix keyboard type error
authorNam KwanWoo <kw46.nam@samsung.com>
Wed, 3 Apr 2013 09:42:07 +0000 (18:42 +0900)
committerNam KwanWoo <kw46.nam@samsung.com>
Wed, 3 Apr 2013 09:42:07 +0000 (18:42 +0900)
Change-Id: Iebae087e359484c5780b0b12a030ae3ae0f79b10

src/system_info_device.c

index 300e6671f07481e4fd590e1dce779ea32b9e31f0..d866851659c44402f2453de05bff65f788f814e7 100644 (file)
@@ -447,6 +447,12 @@ int system_info_get_keyboard_type(system_info_key_e key, system_info_data_type_e
                return SYSTEM_INFO_ERROR_IO_ERROR;
        }
 
+       if (!strcmp(string, "NULL")) {
+               *value = NULL;
+               free(string);
+               return SYSTEM_INFO_ERROR_NONE;
+       }
+
        *value = string;
 
        return SYSTEM_INFO_ERROR_NONE;