]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api: Fix clang warning
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 29 Jul 2025 16:01:54 +0000 (16:01 +0000)
committerKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 1 Aug 2025 09:02:21 +0000 (14:32 +0530)
commit882afcab7de5e2f6edff8069774d36c0edbe2212
tree4fe5026e2d9563e042d9ab7bd8d06fcb1d65a0e9
parent5455ce91abc01981260c55b405b2f4d9d36769cf
api: Fix clang warning

Fix the following warning by simply deleting the line.  The variable
path_dir_end is not used after this line, and thus does not need to be
set.

api.c:2384:19: warning: expression which evaluates to zero treated as a
null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
 2384 |                         path_dir_end = '\0';

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