From f59a0ff9662a062ad3a88d64ba4791c66f7ab964 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 14 Apr 2026 23:48:55 -0500 Subject: [PATCH] Auto-commit branches.cpp --- src/branches.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/branches.cpp b/src/branches.cpp index a0ffe287..bd8b5a51 100644 --- a/src/branches.cpp +++ b/src/branches.cpp @@ -452,8 +452,11 @@ Branches::to_string(void) const void Branches::find_and_set_mode_ro() { - Branches::Ptr impl = std::atomic_load(&_impl); - auto new_impl = std::make_shared(impl->minfreespace()); + Branches::Ptr impl; + Branches::Ptr new_impl; + + impl = std::atomic_load(&_impl); + new_impl = std::make_shared(impl->minfreespace()); *new_impl = *impl;