Update resourceDatabase.cpp

Comparison between char '/0' and pointer to char lowerSearchString requires dereferencing
This commit is contained in:
Qfwfq 2018-05-14 21:54:49 -07:00 committed by GitHub
parent cc3108fe85
commit 701d667408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -610,7 +610,7 @@ int getSearchResults( const char *inResourceType,
char *lowerSearchString = stringToLowerCase( inSearchString );
if( lowerSearchString == '\0' ) {
if( *lowerSearchString == '\0' ) {
// empty search, consider everything
numGotten = t->getMatches( lowerSearchString, inNumToSkip, inNumToGet,
(void **)values );