]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: don't expect cg_mask_from_string()'s return value to be initialized
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Oct 2018 15:25:51 +0000 (17:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Oct 2018 16:43:34 +0000 (18:43 +0200)
commit38a90d45ad517fbfdb6fdb8ab04c71991727b482
treeb376bde52a2f414e61d2386d0a352b7f6d9d1846
parent0887fa711cc3ed63114ec53b4052a626f6929915
cgroup-util: don't expect cg_mask_from_string()'s return value to be initialized

Also, when we fail, don't clobber the return value.

This brings the call more in-line with our usual coding style, and
removes surprises.

None of the callers seemed to care about this behaviour.
src/basic/cgroup-util.c