aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-12-15 12:53:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-12-15 12:53:02 +0200
commit759f588c35e0d142a4325e8f550ce10d7fec68cc (patch)
tree0364a569b7ca12220ad54787b42f88d6c70b4705
parent871273b374f75306a6c79c4ec067f2e4ce338172 (diff)
Fix bug in process_path::clear_recall()
-rw-r--r--libbutl/process.ixx5
1 files changed, 5 insertions, 0 deletions
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 ();
}
}