mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 04:28:57 +00:00
ash: better comment. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
630dde1cef
commit
a00329ca8e
@ -6400,7 +6400,7 @@ varvalue(char *name, int varflags, int flags, struct strlist *var_str_list)
|
||||
case '7':
|
||||
case '8':
|
||||
case '9':
|
||||
num = atoi(name); /* number(name) fails on ${var#str} etc */
|
||||
num = atoi(name); /* number(name) fails on ${N#str} etc */
|
||||
if (num < 0 || num > shellparam.nparam)
|
||||
return -1;
|
||||
p = num ? shellparam.p[num - 1] : arg0;
|
||||
|
Loading…
Reference in New Issue
Block a user