Really recurse from the lowest subparser back to the parent

This commit is contained in:
Pierre Pronchery 2014-07-28 21:03:07 +02:00
parent ce0614492e
commit d6c76ce077

View File

@ -987,6 +987,7 @@ static char * _path_lookup(CppParser * cp, char const * path, int system)
if(system != 0)
return cpp_path_lookup(cp->cpp, path);
for(; cp->subparser != NULL; cp = cp->subparser);
for(; cp != NULL; cp = cp->parent)
{
filename = parser_get_filename(cp->parser);