summaryrefslogtreecommitdiff
path: root/src/option.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.cc')
-rw-r--r--src/option.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.cc b/src/option.cc
index f8e6a713..8b36e64c 100644
--- a/src/option.cc
+++ b/src/option.cc
@@ -194,7 +194,7 @@ strings_list process_arguments(strings_list args, scope_t& scope)
if (! opt.first)
throw_(option_error, "illegal option --" << name);
- if (opt.second && ++i != args.end() && value == NULL) {
+ if (opt.second && ! value && ++i != args.end() && value == NULL) {
value = (*i).c_str();
DEBUG("option.args", " read option value from arg: " << value);
if (value == NULL)