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:
parent
82116426d6
commit
fc6502a69f
@ -814,7 +814,8 @@ MutableLocaleRoster::LoadCatalog(const char* signature, const char* language,
|
||||
currCatalog = nextCatalog;
|
||||
}
|
||||
}
|
||||
return catalog;
|
||||
if (catalog != NULL)
|
||||
return catalog;
|
||||
}
|
||||
info->UnloadIfPossible();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user