luad

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit cbdd65ecdaec1458d19365962dbe401c4fa3cc17
parent 0e03b0a763b24a63b8f41aff5e28318e0ee8e57c
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 26 May 2026 19:14:58 +0100

remove useless check for fd > 0

we can't even be here if the fd is not valid

Diffstat:
Mluad.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/luad.c b/luad.c @@ -104,7 +104,7 @@ int start_lua_child(lua_State *L, fflush(stdout); fflush(stderr); for(int i=0; i < 3; i++) { - if(fds[i] > 0) dup2(fds[i], i); + dup2(fds[i], i); } lua_newtable(L); /* arg */