Skip to content

Commit

Permalink
Prevent a fault when an option name has an emedded NUL character
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Feb 5, 2025
1 parent a398cef commit d145f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cpp/stringhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ bool StringHelper::equalsIgnoreCase(const LogString& s1, const logchar* upper, c
++lower;
}

return 0 == *upper && iter == s1.end();
return 0 == *upper;
}

bool StringHelper::equalsIgnoreCase(const LogString& s1, const LogString& upper, const LogString& lower)
Expand Down

0 comments on commit d145f7b

Please sign in to comment.