Skip to content

Commit

Permalink
Fix incorrect removal of config parameters
Browse files Browse the repository at this point in the history
Bad logic introduced in 28e35d0. Fortunately, nothing currently uses
this method.
  • Loading branch information
CendioOssman committed Jan 27, 2025
1 parent c479602 commit 35cc69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/rfb/Configuration.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bool Configuration::remove(const char* param) {
[param](VoidParameter* p) {
return strcasecmp(p->getName(), param) == 0;
});
if (iter != params.end())
if (iter == params.end())
return false;

params.erase(iter);
Expand Down

0 comments on commit 35cc69a

Please sign in to comment.