From: Abhimanyu Swami Date: Thu, 10 Sep 2020 12:51:48 +0000 (+0530) Subject: Coverity issue fix X-Git-Tag: submit/tizen/20200917.081550^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F243857%2F3;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git Coverity issue fix Change-Id: Ia5c65c30b3aaf9be0c512eec48ff74a78eee0570 Signed-off-by: Abhimanyu Swami --- diff --git a/plugin/mms_plugin/MmsPluginInternal.cpp b/plugin/mms_plugin/MmsPluginInternal.cpp index 3a21279..febe5ae 100755 --- a/plugin/mms_plugin/MmsPluginInternal.cpp +++ b/plugin/mms_plugin/MmsPluginInternal.cpp @@ -751,7 +751,8 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra char fullPath[MAX_FULL_PATH_SIZE+1] = {0, }; - filename = MsgGetFileName(pRetrievedFilePath); + if (pRetrievedFilePath != NULL) + filename = MsgGetFileName(pRetrievedFilePath); snprintf(fullPath, MAX_FULL_PATH_SIZE+1, "%s%s", MSG_IPC_DATA_PATH, filename);