diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index 92d790180..f2c0a70f2 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -5884,7 +5884,7 @@ static FILE *generate_stream_from_string(const char *s, pid_t *pid_p) | |||
5884 | * Our solution: ONLY bare $(trap) or `trap` is special. | 5884 | * Our solution: ONLY bare $(trap) or `trap` is special. |
5885 | */ | 5885 | */ |
5886 | s = skip_whitespace(s); | 5886 | s = skip_whitespace(s); |
5887 | if (strncmp(s, "trap", 4) == 0 | 5887 | if (is_prefixed_with(s, "trap") |
5888 | && skip_whitespace(s + 4)[0] == '\0' | 5888 | && skip_whitespace(s + 4)[0] == '\0' |
5889 | ) { | 5889 | ) { |
5890 | static const char *const argv[] = { NULL, NULL }; | 5890 | static const char *const argv[] = { NULL, NULL }; |