]> git.ipfire.org Git - thirdparty/systemd.git/commit
home: use goto to make it clear that variables are initialized
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Apr 2021 10:57:23 +0000 (12:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Apr 2021 11:00:50 +0000 (13:00 +0200)
commit98d81cf9743cf9f4c37a45670a9b5e97e071b57f
tree2d2d8b1e8aa1ae8fa4821eb7b1bf29ebb2719158
parent3b9e6fb4903564b16d160f4007d4ad937ee5c79b
home: use goto to make it clear that variables are initialized

gcc-11.0.1-0.3.fc34.x86_64 with -Og was complaining that 'r' might be
unitialized. It cannot, but let's rework the code to use a goto instead of
conditionalizing on 'call' being unset, which I think is clearer and less error
prone. This silences the warning.
src/home/homed-home.c