From: Tom Hromatka Date: Tue, 29 Jul 2025 16:13:46 +0000 (+0000) Subject: api: Fix clang warning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a1f5090c6bad3c62b9ca278a97478f0710fe9b9;p=thirdparty%2Flibcgroup.git api: Fix clang warning Fix the following clang warning by using NULL instead of '\0' api.c:6721:17: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] 6721 | mnt_paths[i] = '\0'; | ^~~~ Signed-off-by: Tom Hromatka Signed-off-by: Kamalesh Babulal --- diff --git a/src/api.c b/src/api.c index 4940e459..8dcaf80a 100644 --- a/src/api.c +++ b/src/api.c @@ -6718,7 +6718,7 @@ int cgroup_list_mount_points(const enum cg_version_t cgrp_version, char ***mount goto err; } } - mnt_paths[i] = '\0'; + mnt_paths[i] = NULL; ret = 0; *mount_paths = mnt_paths;