diff options
Diffstat (limited to 'src/option.cc')
-rw-r--r-- | src/option.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/option.cc b/src/option.cc index b45fc87b..1a68d2a8 100644 --- a/src/option.cc +++ b/src/option.cc @@ -126,7 +126,9 @@ void process_environment(const char ** envp, const string& tag, if (*q == '=') { try { - process_option(string(buf), scope, q + 1, string(*p, q - *p)); + string value = string(*p, q - *p); + if (! value.empty()) + process_option(string(buf), scope, q + 1, value); } catch (const std::exception& err) { add_error_context("While parsing environment variable option '" |