mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
fixes #78
This commit is contained in:
parent
78387fb391
commit
9b0ffa8315
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ static int update_values( wcstring_list_t &list,
|
|||
*/
|
||||
long ind = indexes[i] - 1;
|
||||
const wcstring newv = values[ i ];
|
||||
if( ind < 0 )
|
||||
if( ind < 0 || ind>=list.size() )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue