summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Options.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-11-17 09:07:13 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-11-17 09:07:13 +0000
commit084701eef8b44ed55c6984aa0bfdadfea1c15839 (patch)
tree23abb287814ffa6aca7f45cae91abd3172cd25d7 /cpp/src/IceUtil/Options.cpp
parentRemoved old property value. (diff)
downloadice-084701eef8b44ed55c6984aa0bfdadfea1c15839.tar.bz2
ice-084701eef8b44ed55c6984aa0bfdadfea1c15839.tar.xz
ice-084701eef8b44ed55c6984aa0bfdadfea1c15839.zip
Fix for bug 1561
Diffstat (limited to 'cpp/src/IceUtil/Options.cpp')
-rwxr-xr-xcpp/src/IceUtil/Options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/IceUtil/Options.cpp b/cpp/src/IceUtil/Options.cpp
index 236fdaf2d24..87127de6029 100755
--- a/cpp/src/IceUtil/Options.cpp
+++ b/cpp/src/IceUtil/Options.cpp
@@ -902,8 +902,7 @@ IceUtil::Options::setOpt(const string& opt1, const string& opt2, const string& v
if(rt == NoRepeat)
{
- setNonRepeatingOpt(opt1, val);
- setNonRepeatingOpt(opt2, val);
+ setNonRepeatingOpt(opt1.empty() ? opt2 : opt1, val);
}
else
{