diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-11-07 15:14:10 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-11-08 13:36:25 +0300 |
commit | b3473af950434305614bdf031fb408eaef06c1d5 (patch) | |
tree | 91aaf12b528584389be071d9aaaacf71889d30fe /butl/process.cxx | |
parent | 7ce74ce206065c3af0035583330b3c773086f21c (diff) |
Fix process ctor that doesn't quote empty arguments on Windows
Diffstat (limited to 'butl/process.cxx')
-rw-r--r-- | butl/process.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/butl/process.cxx b/butl/process.cxx index d8b10be..6b515b7 100644 --- a/butl/process.cxx +++ b/butl/process.cxx @@ -717,7 +717,7 @@ namespace butl // there could be actual quotes in the value, we need to escape them. // string a (*p); - bool quote (a.find (' ') != string::npos); + bool quote (a.empty () || a.find (' ') != string::npos); if (quote) cmd_line += '"'; |