From 2e700eaad42d0e78660b8972feb18315f25a9b2d Mon Sep 17 00:00:00 2001 From: Kyeonghun Lee Date: Fri, 15 Apr 2016 15:28:36 +0900 Subject: Add null check for msg_db_select_with_query Change-Id: I2783d704f318dae2e027a8e8aac96765f7b30ee6 Signed-off-by: Kyeonghun Lee --- mapi/msg_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapi/msg_storage.cpp b/mapi/msg_storage.cpp index 1130401..7009a72 100755 --- a/mapi/msg_storage.cpp +++ b/mapi/msg_storage.cpp @@ -867,7 +867,7 @@ EXPORT_API int msg_db_select_with_query(msg_handle_t handle, const char *query, CHECK_MSG_SUPPORTED(MSG_TELEPHONY_SMS_FEATURE); msg_error_t err = MSG_SUCCESS; - if (handle == NULL || query == NULL) + if (handle == NULL || query == NULL || db_res == NULL || row_count == NULL || col_count == NULL) return MSG_ERR_INVALID_PARAMETER; MsgHandle* pHandle = (MsgHandle*)handle; -- cgit v1.2.3