From 7d0f210ac2f32c64dd71bbe82ba19e4e6af51d51 Mon Sep 17 00:00:00 2001 From: Abhimanyu Swami Date: Thu, 10 Sep 2020 18:21:48 +0530 Subject: [PATCH] Coverity issue fix Change-Id: Ia5c65c30b3aaf9be0c512eec48ff74a78eee0570 Signed-off-by: Abhimanyu Swami --- plugin/mms_plugin/MmsPluginInternal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.7.4