]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/user-util: modernize getgroups_alloc() a bit 35226/head
authorMike Yuan <me@yhndnzj.com>
Mon, 18 Nov 2024 17:57:53 +0000 (18:57 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 10 Dec 2024 19:51:14 +0000 (20:51 +0100)
commitf0e8db76ca0eea5b039df8365bef691a343bc41f
treecf9f6b6958bbc9f5bad18b73be48391df5e05193
parent8112df6bef4bcf832dcc0ce08c73e3164a2e2552
basic/user-util: modernize getgroups_alloc() a bit

- Make sure ret is initialized if we return >= 0
- Reduce variable scope
src/basic/user-util.c
src/basic/user-util.h
src/test/test-user-util.c