fix svace issues 65/65065/1
authorKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 7 Apr 2016 06:19:39 +0000 (15:19 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 7 Apr 2016 06:19:39 +0000 (15:19 +0900)
Change-Id: Ie853125afe8ed093600d4c4e1bbe05cc6e8f73da
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
externals/MsgNotificationWrapper.cpp
manager/src/msg-manager-notification.cpp

index 1bf54dd..c3b59ac 100755 (executable)
@@ -407,7 +407,7 @@ void MsgSoundPlayStart(const MSG_ADDRESS_INFO_S *pAddrInfo, MSG_SOUND_TYPE_T sou
                break;
        }
 
-       if (pAddrInfo && pAddrInfo->addressVal != '\0')
+       if (pAddrInfo && pAddrInfo->addressVal[0] != '\0')
                bundle_add_str(bundle_data, "address", pAddrInfo->addressVal);
 
        msg_launch_app(MSG_MGR_APP_ID, bundle_data);
index 53cf2ad..a51d35d 100644 (file)
@@ -2378,7 +2378,7 @@ void createInfoData(MSG_MGR_NOTI_INFO_S *noti_info, MSG_MGR_MESSAGE_INFO_S *msg_
 #ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
                MSG_MGR_CONTACT_INFO_S contactInfo = {0,};
                MSG_MGR_ADDRESS_INFO_S tmpAddressInfo = {0,};
-               if (msg_info->addressVal) {
+               if (msg_info->addressVal[0] != '\0') {
                        snprintf(tmpAddressInfo.addressVal, MAX_ADDRESS_VAL_LEN, "%s", msg_info->addressVal);
                        if (_is_valid_email(msg_info->addressVal)) {
                                tmpAddressInfo.addressType = MSG_ADDRESS_TYPE_EMAIL;