about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/nix/progress-bar.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc
index 2ad0994508fe..17d7109e7165 100644
--- a/src/nix/progress-bar.cc
+++ b/src/nix/progress-bar.cc
@@ -129,8 +129,10 @@ public:
     {
         auto state(state_.lock());
 
-        state->activities.emplace_back(ActInfo{s, "", type});
+        state->activities.emplace_back(ActInfo());
         auto i = std::prev(state->activities.end());
+        i->s = s;
+        i->type = type;
         state->its.emplace(act, i);
         state->activitiesByType[type].its.emplace(act, i);