diff --git a/src/Native/gc/unix/cgroup.cpp b/src/Native/gc/unix/cgroup.cpp index df808c45d8f..f3ae610a24d 100644 --- a/src/Native/gc/unix/cgroup.cpp +++ b/src/Native/gc/unix/cgroup.cpp @@ -189,7 +189,7 @@ class CGroup common_path_prefix_len = 0; } - assert(cgroup_path_relative_to_mount[common_path_prefix_len] == '/'); + assert((cgroup_path_relative_to_mount[common_path_prefix_len] == '/') || (cgroup_path_relative_to_mount[common_path_prefix_len] == '\0')); strcat(cgroup_path, cgroup_path_relative_to_mount + common_path_prefix_len);