Skip to content

Commit

Permalink
avoid using unintialized variable
Browse files Browse the repository at this point in the history
fixes #47
  • Loading branch information
Tomasz Poradowski authored and tporadowski committed Jan 15, 2020
1 parent 286389b commit fd77bb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Win32_Interop/Win32_CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,8 @@ void ParseCommandLineArguments(int argc, char** argv) {
string confFilePath;
for (int n = (confFile ? 2 : 1); n < argc; n++) {
if (string(argv[n]).substr(0, 2) == "--") {
string argument = string(argv[n]).substr(2, argument.length() - 2);
string argumentString = string(argv[n]);
string argument = argumentString.substr(2, argumentString.length() - 2);
transform(argument.begin(), argument.end(), argument.begin(), ::tolower);

// Some -- arguments are passed directly to redis.c::main()
Expand Down

0 comments on commit fd77bb0

Please sign in to comment.