]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: use ASSERT_PTR to validate result before use
authorLuca Boccassi <bluca@debian.org>
Sat, 9 Dec 2023 13:04:51 +0000 (13:04 +0000)
committerLuca Boccassi <bluca@debian.org>
Sat, 9 Dec 2023 13:17:02 +0000 (13:17 +0000)
commit2343f6b11e740f49b36b4c53e345ee26e48ba73f
tree64e2e2d2cea7882679e378ab531b2829a508f373
parentfc9d7ddbacea48a70981231a5040307438a699c2
logind: use ASSERT_PTR to validate result before use

handle_action_lookup() in general can return NULL, but not
here as the handle is checked before, so add an assert.

CID#1529415
CID#1529416
src/login/logind-action.c