From 5b375f6de721b78233e54a706364612885aee425 Mon Sep 17 00:00:00 2001 From: qyt <486179@qq.com> Date: Sat, 1 Aug 2026 05:50:36 +0000 Subject: [PATCH] Potential fix for code scanning alert no. 82 Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp b/XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp index 0b9cfce..2720ce7 100644 --- a/XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp +++ b/XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp @@ -261,7 +261,7 @@ bool XEngine_Task_HttpDownload(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, in Cryption_Api_Digest(tszFileDir, tszHashKey, &nHashLen, true, st_ServiceCfg.st_XStorage.nHashMode); BaseLib_String_StrToHex((char*)tszHashKey, nHashLen, tszHashStr); BaseLib_String_GetFileAndPath(tszFileDir, NULL, NULL, NULL, st_HDRParam.tszMimeType); - int nEffectiveLimit = nLimit > 0 ? nLimit : 0; + int nEffectiveLimit = 0; xhLimit = NULL; if (nEffectiveLimit > 0) {