diff options
Diffstat (limited to 'alarm-manager.c')
-rw-r--r-- | alarm-manager.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/alarm-manager.c b/alarm-manager.c index b43e6c8..c5ab626 100644 --- a/alarm-manager.c +++ b/alarm-manager.c @@ -215,11 +215,18 @@ static profile_t _get_profile() { 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': |