diff options
author | Pierre Ossman <ossman@cendio.se> | 2025-01-27 07:09:01 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2025-01-27 07:09:01 +0100 |
commit | 35cc69aef494039387e75bb8fda5739f32f83f9a (patch) | |
tree | cc58ff39c7a2cbcbe0eab718f65ccbdabfbc4225 | |
parent | c479602e867a1670880e43fcd2aac03f7a0247ab (diff) | |
download | tigervnc-35cc69aef494039387e75bb8fda5739f32f83f9a.tar.gz tigervnc-35cc69aef494039387e75bb8fda5739f32f83f9a.zip |
Fix incorrect removal of config parameters
Bad logic introduced in 28e35d0. Fortunately, nothing currently uses
this method.
-rw-r--r-- | common/rfb/Configuration.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/Configuration.cxx b/common/rfb/Configuration.cxx index 653890ab..e6c37b7e 100644 --- a/common/rfb/Configuration.cxx +++ b/common/rfb/Configuration.cxx @@ -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); |