diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index 2d333d731..1d2826d9a 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -3895,6 +3895,12 @@ static NOINLINE int run_pipe(struct pipe *pi) | |||
3895 | argv_expanded = expand_strvec_to_strvec(argv + command->assignment_cnt); | 3895 | argv_expanded = expand_strvec_to_strvec(argv + command->assignment_cnt); |
3896 | } | 3896 | } |
3897 | 3897 | ||
3898 | /* if someone gives us an empty string: ``, $(), ... */ | ||
3899 | if (!argv_expanded[0]) { | ||
3900 | debug_leave(); | ||
3901 | return 0; | ||
3902 | } | ||
3903 | |||
3898 | x = find_builtin(argv_expanded[0]); | 3904 | x = find_builtin(argv_expanded[0]); |
3899 | #if ENABLE_HUSH_FUNCTIONS | 3905 | #if ENABLE_HUSH_FUNCTIONS |
3900 | funcp = NULL; | 3906 | funcp = NULL; |