fix crash in 'make msvc'

svn path=/trunk/; revision=17829
This commit is contained in:
Royce Mitchell III 2005-09-13 11:57:50 +00:00
parent a9c581cdb7
commit 03d6ef4607

View file

@ -230,6 +230,11 @@ Path::Split ( vector<string>& out,
}
if ( include_last && strcmp ( prev, "." ) )
out.push_back ( prev );
// special-case where path only has "."
// don't move this check up higher as it might miss
// some funny paths...
if ( !out.size() && !strcmp ( prev, "." ) )
out.push_back ( "." );
}
XMLFile::XMLFile()