From 759f588c35e0d142a4325e8f550ce10d7fec68cc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Dec 2020 12:53:02 +0200 Subject: Fix bug in process_path::clear_recall() --- libbutl/process.ixx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libbutl/process.ixx b/libbutl/process.ixx index c32bf2a..7676ce3 100644 --- a/libbutl/process.ixx +++ b/libbutl/process.ixx @@ -95,8 +95,13 @@ namespace butl { if (!effect.empty ()) { + bool init (initial != recall.string ().c_str ()); + recall = std::move (effect); effect.clear (); + + if (!init) + initial = recall.string ().c_str (); } } -- cgit v1.1