Change-Id: I355c00af16481c4dc5f96d705bf2a39373e638de
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
{
static profile_t saved = PROFILE_UNKNOWN;
char *profileName;
+ int r;
if (__builtin_expect(saved != PROFILE_UNKNOWN, 1))
return saved;
- system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
+ r = system_info_get_platform_string("http://tizen.org/feature/profile",
+ &profileName);
+ if (r != SYSTEM_INFO_ERROR_NONE) {
+ ALARM_MGR_LOG_PRINT("Failed to get profile info. error(%d)", r);
+ return saved;
+ }
+
switch (*profileName) {
case 'm':
case 'M':