Update resourceDatabase.cpp
Comparison between char '/0' and pointer to char lowerSearchString requires dereferencing
This commit is contained in:
parent
cc3108fe85
commit
701d667408
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue
Block a user