mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Dealing with non-existent category file
This commit is contained in:
parent
249c99976d
commit
2e36ed30a4
@ -313,7 +313,8 @@ int initCategories(STGlobals* g)
|
||||
fp = fopen(g->mOptions.mCategoryFile, "r");
|
||||
if (!fp)
|
||||
{
|
||||
REPORT_ERROR(__LINE__, initCategories);
|
||||
/* It isnt an error to not have a categories file */
|
||||
REPORT_INFO("No categories file.");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -676,9 +677,12 @@ int categorizeRun(const STRun* aRun, STGlobals* g)
|
||||
*/
|
||||
walkTree(&g->mCategoryRoot, freeNodeRunProcessor, NULL);
|
||||
|
||||
for (i = 0; i < aRun->mAllocationCount; i++)
|
||||
if (g->mNCategoryMap > 0)
|
||||
{
|
||||
categorizeAllocation(aRun->mAllocations[i], g);
|
||||
for (i = 0; i < aRun->mAllocationCount; i++)
|
||||
{
|
||||
categorizeAllocation(aRun->mAllocations[i], g);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user