Protect TextIsEqual from NULLs

This commit is contained in:
Luke Krasnoff 2021-11-09 18:30:13 +10:30
parent 3f595fda26
commit accb3e8824

View File

@ -1142,6 +1142,10 @@ bool TextIsEqual(const char *text1, const char *text2)
{
bool result = false;
if (text1 == NULL || text2 == NULL) {
return false;
}
if (strcmp(text1, text2) == 0) result = true;
return result;