From 167f2c1a2bd3f2e1662a2f4a6aedaec92bc05df7 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 26 Dec 2022 16:35:24 +0900 Subject: dissect: use assert() when no side effect --- src/dissect/dissect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dissect') diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 1c62d8eafc..a9212f11fb 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; -- cgit v1.2.1