Small protection against unexpected case.
This commit is contained in:
parent
f379b9e4e6
commit
36e5533400
1 changed files with 4 additions and 2 deletions
|
@ -78,9 +78,11 @@ static std::string get_file_code(const std::string& filename){
|
|||
// decode the filenames placed in a location
|
||||
static std::string get_location(const std::string& loc)
|
||||
{
|
||||
std::vector< std::string > pos = utils::quoted_split(loc, ' ');
|
||||
std::vector< std::string >::const_iterator i = pos.begin(), end = pos.end();
|
||||
std::string res;
|
||||
std::vector< std::string > pos = utils::quoted_split(loc, ' ');
|
||||
if(pos.empty())
|
||||
return res;
|
||||
std::vector< std::string >::const_iterator i = pos.begin(), end = pos.end();
|
||||
while (true) {
|
||||
res += get_filename(*(i++));
|
||||
if(i == end) break;
|
||||
|
|
Loading…
Add table
Reference in a new issue