]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgexec: fix uninitialized variable in find_scope_pid()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sun, 18 Jun 2023 07:35:38 +0000 (13:05 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 21 Jun 2023 16:16:25 +0000 (10:16 -0600)
commitc719d9c858c5f9abc3be8ad00aff5571e2834a71
tree92bb19c33ed2bac89c09868eec08ced3372dcde4
parent9a48fdc10bfec553fa63fdc6018ebf9c9c464e1d
tools/cgexec: fix uninitialized variable in find_scope_pid()

Fix uninitialized variable, reported by the Coverity tool:

CID 321266: Uninitialized scalar variable (UNINIT)

memset(), ctrl_name with every iteration, to avoid using the stale value
or uninitialized values.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/tools/cgexec.c