]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgxset: fix Coverity uninitialized variable warning
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 20 May 2022 14:45:16 +0000 (08:45 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 20 May 2022 14:45:21 +0000 (08:45 -0600)
commitc71e1446e7ccd88af803e65999bc46ae2fec3a63
tree76215a85de61ca663ac19d9a1b5e4a490b0dd873
parent4a92b3ca0fcca18f69ee75d4627db7171d22d217
tools/cgxset: fix Coverity uninitialized variable warning

Originally this issue got reported on tools/cgset and since tools/cgxset
borrows most of the code from cgset, fix the issue here too.  The
original warning (cgset):

CID 1488715 (#1 of 1): Uninitialized scalar variable (UNINIT).
uninit_use_in_call: Using uninitialized value *src_cg_path as
argument to %s when calling fprintf.

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