From 7ecf86a86ee2c2f1ae811ea622d20a1e1b329bbb Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 15 Jan 2024 18:12:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9WiFi=E5=88=9D=E6=AC=A1?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E9=87=8D=E5=A4=8D=E5=8F=91=E5=9B=BE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/source/sf_app/code/source/wifi/sf_wifi_svr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c b/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c index 93636a079..30564096b 100755 --- a/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c +++ b/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c @@ -1314,8 +1314,11 @@ SINT32 sf_svr_packet_proc(SINT32 fd, UINT8 *pAppData, UINT16 dataLen) strcpy((char *)fileName, (char *)pMsgStruct->msgBuf.getThumbList.fileName); if((pMsgStruct->msgBuf.getThumbList.diskType) && (Disk != pMsgStruct->msgBuf.getThumbList.diskType)) { + if(Disk) + { + memset(fileName,'\0', sizeof(fileName)); + } Disk = pMsgStruct->msgBuf.getThumbList.diskType; - memset(fileName,'\0', sizeof(fileName)); } MLOGI("[WIFI_GET_CAMERA_THUMB_LIST],fileName:%s diskType:%d\n",fileName,pMsgStruct->msgBuf.getThumbList.diskType); appCreatThumbList(fileName,pMsgStruct->msgBuf.getThumbList.diskType);