From 58c8a50e8fc8de64a07314d3a0a04db2f2092b1d Mon Sep 17 00:00:00 2001 From: superp00t Date: Sat, 2 Dec 2023 12:48:25 -0500 Subject: [PATCH] fix(bc): OsSetCommandLine initialize counter i to 0 --- bc/os/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bc/os/CommandLine.cpp b/bc/os/CommandLine.cpp index 8645397..b534396 100644 --- a/bc/os/CommandLine.cpp +++ b/bc/os/CommandLine.cpp @@ -47,7 +47,7 @@ std::string CheckArgument(std::string argument) { } void OsSetCommandLine(int32_t argc, char** argv) { - int32_t i; + int32_t i = 0; std::string result = ""; while (i < argc) {