From d3f85ad08bccd8f5ee1b1072c6fa832deb835089 Mon Sep 17 00:00:00 2001 From: Sangkoo Kim Date: Wed, 12 Dec 2012 19:45:38 +0900 Subject: [PATCH] Set vconf key for voice mail number only if it is valid number in SIM. Change-Id: I190a7b16ce34763753629bfeacaf1763adfa6690 --- plugin/sms_plugin/SmsPluginSetting.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin/sms_plugin/SmsPluginSetting.cpp b/plugin/sms_plugin/SmsPluginSetting.cpp index 80c836c..32df04f 100755 --- a/plugin/sms_plugin/SmsPluginSetting.cpp +++ b/plugin/sms_plugin/SmsPluginSetting.cpp @@ -975,8 +975,11 @@ void SmsPluginSetting::setMailboxInfoEvent(SMS_SIM_MAILBOX_LIST_S *pMailboxList, snprintf(mailNumber, MAX_PHONE_NUMBER_LEN, "%s", simMailboxList.list[i].num); MSG_DEBUG("[%s]", mailNumber); } - if (MsgSettingSetString(VOICEMAIL_NUMBER, mailNumber) != MSG_SUCCESS) - MSG_DEBUG("MsgSettingSetString is failed!!"); + + if (mailNumber[0] != '\0') { + if (MsgSettingSetString(VOICEMAIL_NUMBER, mailNumber) != MSG_SUCCESS) + MSG_DEBUG("MsgSettingSetString is failed!!"); + } break; } } -- 2.7.4