summaryrefslogtreecommitdiffstats
path: root/src/xspawn.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-03-27 15:38:01 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-03-27 15:38:01 -0400
commitcd929976f8beb208c0c3524ae11de6ceed941324 (patch)
tree43aed94089ac02b122249e546a1bdeda7221c6b2 /src/xspawn.c
parent943581a4d59b42a684666f146324d908b0dac428 (diff)
downloadbfs-cd929976f8beb208c0c3524ae11de6ceed941324.tar.xz
xspawn: Fix bfs_resolve_late() error reporting
Diffstat (limited to 'src/xspawn.c')
-rw-r--r--src/xspawn.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/xspawn.c b/src/xspawn.c
index f67adec..065fbae 100644
--- a/src/xspawn.c
+++ b/src/xspawn.c
@@ -364,16 +364,10 @@ static int bfs_resolve_late(struct bfs_resolver *res) {
res->done = true;
return 0;
}
-
- if (end) {
- path = end + 1;
- } else {
- errno = ENOENT;
- return -1;
- }
}
- return 0;
+ errno = ENOENT;
+ return -1;
}
/** Check if we can skip path resolution entirely. */