fix to check telephony feature 86/62686/1 accepted/tizen/common/20160317.161708 accepted/tizen/ivi/20160317.120630 accepted/tizen/mobile/20160317.120536 accepted/tizen/tv/20160317.120550 accepted/tizen/wearable/20160317.120608 submit/tizen/20160317.105946
authorJongkyu Koo <jk.koo@samsung.com>
Thu, 17 Mar 2016 10:47:15 +0000 (19:47 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Thu, 17 Mar 2016 10:47:15 +0000 (19:47 +0900)
Change-Id: I896998a1b71d28042875fa898c869074d41a48db
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
server/ctsvc_server_phonelog.c

index 5b70c34..4af78c3 100644 (file)
@@ -29,6 +29,7 @@
 #include "ctsvc_number_utils.h"
 #include "ctsvc_localize_utils.h"
 #include "ctsvc_server_setting.h"
+#include "ctsvc_server_utils.h"
 
 #ifdef _CONTACTS_IPC_SERVER
 #include "ctsvc_server_change_subject.h"
@@ -47,6 +48,8 @@ int ctsvc_phone_log_reset_statistics_by_sim(int sim_slot_no)
        char query[CTS_SQL_MIN_LEN] = {0};
        int sim_info_id;
 
+       RETVM_IF(false == ctsvc_server_have_telephony_feature(), CONTACTS_ERROR_NOT_SUPPORTED, "Telephony feature disabled");
+
        sim_info_id = ctsvc_server_sim_get_info_id_by_sim_slot_no(sim_slot_no);
        if (sim_info_id <= 0) {
                ERR("ctsvc_server_sim_get_info_id_by_sim_slot_no() Fail(%d)", sim_info_id);