Fix shadowed variable in shell.
This commit is contained in:
parent
1144a7bd99
commit
6371e33d71
|
@ -1,6 +1,6 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
||||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014.
|
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013, 2014, 2015.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify it
|
This program is free software: you can redistribute it and/or modify it
|
||||||
under the terms of the GNU General Public License as published by the Free
|
under the terms of the GNU General Public License as published by the Free
|
||||||
|
@ -1411,9 +1411,9 @@ readcmd:
|
||||||
continue;
|
continue;
|
||||||
bool found_slash = false;
|
bool found_slash = false;
|
||||||
size_t last_slash = 0;
|
size_t last_slash = 0;
|
||||||
for ( size_t i = 0; i < wildcard_pos; i++ )
|
for ( size_t n = 0; n < wildcard_pos; n++ )
|
||||||
if ( pattern[i] == '/' )
|
if ( pattern[n] == '/' )
|
||||||
last_slash = i, found_slash = true;
|
last_slash = n, found_slash = true;
|
||||||
size_t match_from = found_slash ? last_slash + 1 : 0;
|
size_t match_from = found_slash ? last_slash + 1 : 0;
|
||||||
DIR* dir;
|
DIR* dir;
|
||||||
size_t pattern_prefix = 0;
|
size_t pattern_prefix = 0;
|
||||||
|
|
Loading…
Reference in New Issue