diff options
| author | 2024-09-25 15:00:49 -0400 | |
|---|---|---|
| committer | 2024-09-25 15:00:49 -0400 | |
| commit | 4730d17c4d3d6d78f376cfd2904928b30f6e7413 (patch) | |
| tree | 5c0ebbf9d99de6e2b1dcffcad57c87480f6b9e09 /src/lush.c | |
| parent | added append chaining operator (diff) | |
fixed crash from incorrect pointer indexing
Diffstat (limited to '')
| -rw-r--r-- | src/lush.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1072,7 +1072,7 @@ static int run_command(lua_State *L, char ***commands) { } static int run_command_redirect(lua_State *L, char ***commands, int mode) { - if (commands[2][0] == NULL) + if (commands[2] == NULL) return -1; int saved_stdout = dup(STDOUT_FILENO); |
