Skip to content

Commit 938e1ed

Browse files
Potential fix for code scanning alert no. 37: For loop variable changed in body
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent b7123a6 commit 938e1ed

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/Authorize_Config.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ bool Authorize_Service_Parament(int argc, char** argv)
2222
return false;
2323
}
2424

25-
for (int i = 0;i < argc;i++)
25+
int i = 0;
26+
while (i < argc)
2627
{
2728
if (0 == _tcsxcmp("-h", argv[i]))
2829
{
@@ -69,6 +70,7 @@ bool Authorize_Service_Parament(int argc, char** argv)
6970
st_AuthConfig.st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO;
7071
}
7172
}
73+
i++;
7274
}
7375

7476
return true;

0 commit comments

Comments
 (0)