diff options
-rw-r--r-- | src/nix/progress-bar.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc index 2ad099450..17d7109e7 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); |