From b3473af950434305614bdf031fb408eaef06c1d5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 7 Nov 2016 15:14:10 +0300 Subject: Fix process ctor that doesn't quote empty arguments on Windows --- butl/process.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'butl/process.cxx') 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 += '"'; -- cgit v1.1