chiark / gitweb /
logind: rework manager_get_{user|session}_by_pid() a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Mar 2018 18:04:45 +0000 (19:04 +0100)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitad57fffa7d5b0480148f993af2f4799d62aa0871
tree82b090b67a17ce30166d751ae16ab8f6b32d6b60
parentbf8743c89f67bd0c6016d41ac92ee70e962b74ff
logind: rework manager_get_{user|session}_by_pid() a bit

Let's make sure we always initialize the return value if we return
non-negative.

Just a matter of coding style: we should always initialize our return
values when we return >= 0, and leave them unclobbered if we return < 0.
src/login/logind-core.c