From d737b451fe64b659bfe1128052c9d4cb129f4bf0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 2 Apr 2019 14:48:50 +0200 Subject: [PATCH] analyze: use empty_or_root() where appropriate --- src/analyze/analyze-security.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c index a978ed6da86..2917aff8234 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -296,10 +296,8 @@ static int assess_root_directory( assert(ret_description); *ret_badness = - (isempty(info->root_directory) || - path_equal(info->root_directory, "/")) && - (isempty(info->root_image) || - path_equal(info->root_image, "/")); + empty_or_root(info->root_directory) || + empty_or_root(info->root_image); *ret_description = NULL; return 0;