summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-06-16 09:32:44 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-06-16 09:32:44 -0400
commitc5becba7c522962cf3f0f8b6e02a771b217b26a2 (patch)
treead7defbf00a742f6fca47454c568e915cc57fb04
parentec3bd778daf46c81642c80f80cd0405762412332 (diff)
downloadbfs-main.tar.xz
xspawn: Fix a -Wshadow warning on macOSHEADmain
-rw-r--r--src/xspawn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xspawn.c b/src/xspawn.c
index cf31cc9..ee62c05 100644
--- a/src/xspawn.c
+++ b/src/xspawn.c
@@ -246,8 +246,8 @@ int bfs_spawn_addfchdir(struct bfs_spawn *ctx, int fd) {
#if __APPLE__
// macOS has a bug that causes EBADF when an fchdir() action refers to a
// file opened by the file actions
- for_slist (struct bfs_spawn_action, action, ctx) {
- if (fd == action->out_fd) {
+ for_slist (struct bfs_spawn_action, prev, ctx) {
+ if (fd == prev->out_fd) {
bfs_spawn_clear_posix(ctx);
break;
}