diff options
-rw-r--r-- | registry/tools/options.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/registry/tools/options.cxx b/registry/tools/options.cxx index 02057091f863..4e918ec1b6e9 100644 --- a/registry/tools/options.cxx +++ b/registry/tools/options.cxx @@ -47,14 +47,16 @@ bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg, switch (arg[0]) { case '@': - if ((result = (len > 1)) == true) + result = len > 1; + if (result) { // "@<cmdfile>" result = Options::checkCommandFile(rArgs, &(arg[1])); } break; case '-': - if ((result = (len > 1)) == true) + result = len > 1; + if (result) { // "-<option>" std::string option (&(arg[0]), 2); |