]> git.ipfire.org Git - thirdparty/systemd.git/commit
timedatectl: rework handling of conditions in print_status_info()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 7 Apr 2021 15:31:34 +0000 (17:31 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Apr 2021 11:00:50 +0000 (13:00 +0200)
commita03e335b86a44285c38514be2f2be9883ea7d294
tree65168655ccb4be7aae21e1c3ce5d05dcecfffca4
parent46cbdcd9fe8e6f30f1e3ec3ce4d0360ac4f55243
timedatectl: rework handling of conditions in print_status_info()

gcc-11.0.1-0.3.fc34.x86_64 was complaining that n might be unset with
--optimization=1. It was wrong, but let's rework the code to make it
obvious that it is always set.
src/timedate/timedatectl.c