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>
path_dir_end = strrchr(path, '/');
if (path_dir_end == NULL)
return ECGROUPVALUENOTEXIST;
- path_dir_end = '\0';
/* task_path contain: $path/tasks */
tasks_path = (char *)malloc(strlen(path) + 6 + 1);