diff options
author | Luca Boccassi <bluca@debian.org> | 2024-01-17 15:55:05 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-01-17 17:11:15 +0100 |
commit | ed62937f7856f17ff6ed94cc22ff6f224443b5aa (patch) | |
tree | be0e22252250dccb8acc722c27da1e68c45ad3c6 /src/basic/user-util.c | |
parent | run: strjoina is used, not sprintf (diff) | |
download | systemd-ed62937f7856f17ff6ed94cc22ff6f224443b5aa.tar.xz systemd-ed62937f7856f17ff6ed94cc22ff6f224443b5aa.zip |
user-util: remove dead code
The branch explicitly checks that all of these ret_ variables are NULL,
so they will never be used.
Follow-up for 83e9b584dba1352493d8d2337bfe20d923d5163b
CID#1533239
CID#1533240
CID#1533241
Diffstat (limited to 'src/basic/user-util.c')
-rw-r--r-- | src/basic/user-util.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/basic/user-util.c b/src/basic/user-util.c index a0a47aee4f..1cea96242e 100644 --- a/src/basic/user-util.c +++ b/src/basic/user-util.c @@ -280,12 +280,6 @@ int get_user_creds( if (ret_uid) *ret_uid = u; - if (ret_gid) - *ret_gid = GID_INVALID; - if (ret_home) - *ret_home = NULL; - if (ret_shell) - *ret_shell = NULL; return 0; } |