aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/shell_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c
index 13163acdf..1eca101b9 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -57,7 +57,7 @@ shell_builtin_read(struct builtin_read_params *params)
57 argv = params->argv; 57 argv = params->argv;
58 pp = argv; 58 pp = argv;
59 while (*pp) { 59 while (*pp) {
60 if (endofname(*pp)[0] != '\0') { 60 if (!*pp[0] || endofname(*pp)[0] != '\0') {
61 /* Mimic bash message */ 61 /* Mimic bash message */
62 bb_error_msg("read: '%s': bad variable name", *pp); 62 bb_error_msg("read: '%s': bad variable name", *pp);
63 return (const char *)(uintptr_t)1; 63 return (const char *)(uintptr_t)1;