diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-11-17 09:07:13 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-11-17 09:07:13 +0000 |
commit | 084701eef8b44ed55c6984aa0bfdadfea1c15839 (patch) | |
tree | 23abb287814ffa6aca7f45cae91abd3172cd25d7 /cpp/src/IceUtil/Options.cpp | |
parent | Removed old property value. (diff) | |
download | ice-084701eef8b44ed55c6984aa0bfdadfea1c15839.tar.bz2 ice-084701eef8b44ed55c6984aa0bfdadfea1c15839.tar.xz ice-084701eef8b44ed55c6984aa0bfdadfea1c15839.zip |
Fix for bug 1561
Diffstat (limited to 'cpp/src/IceUtil/Options.cpp')
-rwxr-xr-x | cpp/src/IceUtil/Options.cpp | 3 |
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 { |