]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: fix copy/paste
authorLuca Boccassi <bluca@debian.org>
Sat, 9 Dec 2023 12:58:48 +0000 (12:58 +0000)
committerLuca Boccassi <bluca@debian.org>
Sat, 9 Dec 2023 13:17:02 +0000 (13:17 +0000)
on_circle is set twice to the same value

CID#1529418

src/systemctl/systemctl-list-units.c

index a1482d40c22b37b457b5e6424ac0db3150d2293c..184468ed618c3dbd61030d3495e20d3df655e599 100644 (file)
@@ -135,7 +135,6 @@ static int output_units_list(const UnitInfo *unit_infos, size_t c) {
 
                 if (streq(u->load_state, "not-found")) {
                         on_circle = on_loaded = ansi_highlight_yellow();
-                        on_circle = ansi_highlight_yellow();
                         circle = true;
                 } else if (STR_IN_SET(u->load_state, "bad-setting", "error", "masked")) {
                         on_loaded = ansi_highlight_red();