return;
try {
- gesture_stop_recognition(gestureHandler);
+ if(gesture_stop_recognition(gestureHandler)!= GESTURE_ERROR_NONE)
+ MSG_DEBUG("gesture_stop_recognition failed");
} catch(int exception) {
MSG_FATAL("gesture_stop_recognition error [%d]", exception);
}
/*CID 48645: pEvent->data is an array hence null check is not required on it. */
if (retMsgId) {
- memcpy(retMsgId, pEvent->data, sizeof(msg_message_id_t));
+ memcpy(retMsgId, pEvent->data, sizeof(pEvent->data));
MSG_DEBUG("Saved SIM message ID = [%d]", *retMsgId);
}
typedef struct _MSG_CMD_S {
MSG_CMD_TYPE_T cmdType;
char cmdCookie[MAX_COOKIE_LEN];
- char cmdData[2];
+ char cmdData[10];
} MSG_CMD_S;
} else {
strncpy(filePath, pMedia->szFilePath, MSG_FILEPATH_LEN_MAX);
- g_file_get_contents((const gchar*)filePath, (gchar**)&fileContent, NULL, NULL);
+ if(g_file_get_contents((const gchar*)filePath, (gchar**)&fileContent, NULL, NULL) == FALSE)
+ {
+ MSG_ERR("g_file_get_contents is failed");
+ }
bFiltered = MsgCheckFilterByWord(dbHandle, (const char *)fileContent);
gsize length = 0;
if (MsgAccessFile(smil_multipart->szFilePath, F_OK)) {
- g_file_get_contents((gchar*)smil_multipart->szFilePath, (gchar**)&contents, (gsize*)&length, NULL);
+ if(g_file_get_contents((gchar*)smil_multipart->szFilePath, (gchar**)&contents, (gsize*)&length, NULL) == FALSE)
+ MSG_ERR("g_file_get_contents is failed");
MmsInsertPresentation(pMmsMsg, MIME_APPLICATION_SMIL, NULL, contents, length);
gchar *contents = NULL;
gsize length = 0;
- if (MsgAccessFile(pMultipart->szFilePath, F_OK))
- g_file_get_contents((gchar*)pMultipart->szFilePath, (gchar**)&contents, (gsize*)&length, NULL);
+ if (MsgAccessFile(pMultipart->szFilePath, F_OK)) {
+ if(g_file_get_contents((gchar*)pMultipart->szFilePath, (gchar**)&contents, (gsize*)&length, NULL) == FALSE)
+ MSG_ERR("g_file_get_contents is failed");
+ }
if (contents) {
wrn = snprintf(sqlQuery, sizeof(sqlQuery), "INSERT INTO %s "
}
if (pEvent->result == MSG_SUCCESS) {
- memcpy(general_opt->data, pEvent->data, sizeof(MSG_GENERAL_OPT_S));
+ memcpy(general_opt->data, pEvent->data, sizeof(pEvent->data));
}
return pEvent->result;
gchar *contents = NULL;
gsize length = 0;
- g_file_get_contents((gchar*)pSrc->smil->szFilePath, (gchar**)&contents, (gsize*)&length, NULL);
+ if(g_file_get_contents((gchar*)pSrc->smil->szFilePath, (gchar**)&contents, (gsize*)&length, NULL) == FALSE)
+ MSG_ERR("g_file_get_contents is failed");
if (contents) {
MsgSmilParseSmilDoc(pDst, contents);