diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-03-27 15:38:01 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-03-27 15:38:01 -0400 |
commit | cd929976f8beb208c0c3524ae11de6ceed941324 (patch) | |
tree | 43aed94089ac02b122249e546a1bdeda7221c6b2 /src | |
parent | 943581a4d59b42a684666f146324d908b0dac428 (diff) | |
download | bfs-cd929976f8beb208c0c3524ae11de6ceed941324.tar.xz |
xspawn: Fix bfs_resolve_late() error reporting
Diffstat (limited to 'src')
-rw-r--r-- | src/xspawn.c | 10 |
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. */ |