Change-Id: I2ef4f15c2c8db6e6c8ee093a7fcd03268943accb
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
if (__builtin_expect(profile != TIZEN_PROFILE_UNKNOWN, 1))
return profile;
- char *profileName;
- system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
+ char *profileName = NULL;
+ if (system_info_get_platform_string("http://tizen.org/feature/profile", &profileName) != SYSTEM_INFO_ERROR_NONE)
+ return TIZEN_PROFILE_COMMON;
+
+ if (!profileName)
+ return TIZEN_PROFILE_COMMON;
+
switch (*profileName)
{
case 'm':