summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-06-03 14:24:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-06-03 17:27:00 -0400
commit6fcc0f217e3352e4f935f3e66a62c1cf7073dcb9 (patch)
treebc94e1c6e111bbc9037bbf855afc40e5e5e71b97 /src
parent9200c270c5d1de546a8e0e28fcbd133967b5ae16 (diff)
downloadbfs-6fcc0f217e3352e4f935f3e66a62c1cf7073dcb9.tar.xz
eval: Fix -D stat printed return value
Diffstat (limited to 'src')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 0495207..c0fe6ca 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1286,7 +1286,7 @@ static void debug_stat(const struct bfs_ctx *ctx, const struct BFTW *ftwbuf, enu
DEBUG_FLAG(flags, BFS_STAT_TRYFOLLOW);
DEBUG_FLAG(flags, BFS_STAT_NOSYNC);
- fprintf(stderr, ") == %d", err ? 0 : -1);
+ fprintf(stderr, ") == %d", err == 0 ? 0 : -1);
if (err) {
fprintf(stderr, " [%d]", err);