summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/rtext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rtext.c b/src/rtext.c
index 1e4ed617..b49a6fef 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -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;