mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
dissect: use assert() when no side effect
This commit is contained in:
parent
5c8e19cc1c
commit
167f2c1a2b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user