Fix CID-10337 (unreachable code):

* only return the catalog if it isn't NULL, thus allowing the loop 
  to potentially increase the loop var - in turn making code reachable
  that wasn't before


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39942 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-12-26 13:58:57 +00:00
parent 82116426d6
commit fc6502a69f

View File

@ -814,7 +814,8 @@ MutableLocaleRoster::LoadCatalog(const char* signature, const char* language,
currCatalog = nextCatalog;
}
}
return catalog;
if (catalog != NULL)
return catalog;
}
info->UnloadIfPossible();
}