From 3ea3b1c94f320bb55849d4a9fea1c3009ab3b298 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 7 Jun 2017 14:28:30 +0300 Subject: Fix process_env not to store storage --- libbutl/process-run.txx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbutl/process-run.txx') diff --git a/libbutl/process-run.txx b/libbutl/process-run.txx index d8b4847..54dceed 100644 --- a/libbutl/process-run.txx +++ b/libbutl/process-run.txx @@ -14,7 +14,10 @@ namespace butl { if (!v.empty ()) { - process_args_as (vars_, v, storage_); + std::string storage; + process_args_as (vars_, v, storage); + assert (storage.empty ()); // We don't expect the storage to be used. + vars_.push_back (nullptr); vars = vars_.data (); } -- cgit v1.1