Core: Negative log types are invalid

This commit is contained in:
Vicki Pfau 2023-03-01 22:51:48 -08:00
parent cd4dbaeb60
commit 7d014f1ae6
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const char* mLogCategoryName(int category) {
}
const char* mLogCategoryId(int category) {
if (category < MAX_CATEGORY) {
if (category >= 0 && category < MAX_CATEGORY) {
return _categoryIds[category];
}
return NULL;