From: Yu Watanabe Date: Mon, 26 Dec 2022 07:35:24 +0000 (+0900) Subject: dissect: use assert() when no side effect X-Git-Tag: v253-rc1~210^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=167f2c1a2bd3f2e1662a2f4a6aedaec92bc05df7;p=thirdparty%2Fsystemd.git dissect: use assert() when no side effect --- diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 1c62d8eafc9..a9212f11fbb 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -848,7 +848,7 @@ static int list_print_item( const struct statx *sx, void *userdata) { - assert_se(path); + assert(path); if (event == RECURSE_DIR_ENTER) printf("%s%s/%s\n", path, ansi_grey(), ansi_normal()); @@ -900,8 +900,8 @@ static int mtree_print_item( int r; - assert_se(path); - assert_se(sx); + assert(path); + assert(sx); if (IN_SET(event, RECURSE_DIR_ENTER, RECURSE_DIR_ENTRY)) { _cleanup_free_ char *escaped = NULL;