From 00fc02d1298495261ce9a3b4e22578827b570cd0 Mon Sep 17 00:00:00 2001 From: InHong Han Date: Fri, 27 Mar 2020 11:09:46 +0900 Subject: [PATCH] Modified to not initialize the file_path to null before inserting sticker data Change-Id: I5473c0ea2d6dae2a9c68d3c641f8cc76108491de --- receiver/src/ft.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/receiver/src/ft.cpp b/receiver/src/ft.cpp index e6f085b..1b03c03 100644 --- a/receiver/src/ft.cpp +++ b/receiver/src/ft.cpp @@ -213,6 +213,7 @@ static void _on_send_completed(sap_file_transaction_h file_transaction, } file_on_progress = 0; + sticker_data.reset(); } static void _on_sending_file_in_progress(sap_file_transaction_h file_transaction, @@ -543,8 +544,6 @@ on_data_received(sap_socket_h socket, unsigned short int channel_id, unsigned in json_object_unref(j_object); } else if (msg_id == STICKER_SEND_FACE_DATA) { LOGD("msg : %s", msg_id.c_str()); - sticker_data.reset(); - const char *type_data = json_object_get_string_member(root_obj, "type"); if (type_data) sticker_data.disp_type = string(type_data); -- 2.7.4