projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c8e19c
)
dissect: use assert() when no side effect
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 26 Dec 2022 07:35:24 +0000
(16:35 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 26 Dec 2022 07:42:29 +0000
(16:42 +0900)
src/dissect/dissect.c
patch
|
blob
|
history
diff --git
a/src/dissect/dissect.c
b/src/dissect/dissect.c
index 1c62d8eafc9ba895892415a725484521d0ba1e59..a9212f11fbb184b4a878145c7b3f366b3d868e89 100644
(file)
--- 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;