analyze: use empty_or_root() where appropriate
This commit is contained in:
@@ -296,10 +296,8 @@ static int assess_root_directory(
|
|||||||
assert(ret_description);
|
assert(ret_description);
|
||||||
|
|
||||||
*ret_badness =
|
*ret_badness =
|
||||||
(isempty(info->root_directory) ||
|
empty_or_root(info->root_directory) ||
|
||||||
path_equal(info->root_directory, "/")) &&
|
empty_or_root(info->root_image);
|
||||||
(isempty(info->root_image) ||
|
|
||||||
path_equal(info->root_image, "/"));
|
|
||||||
*ret_description = NULL;
|
*ret_description = NULL;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user