aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lush.c b/src/lush.c
index 04e4a91..6a3892f 100644
--- a/src/lush.c
+++ b/src/lush.c
@@ -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);