diff --git a/src/rtext.c b/src/rtext.c index 936ab9c16886..5adabd3fe075 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -2175,7 +2175,10 @@ int *LoadCodepoints(const char *text, int *count) codepoints = temp; } - *count = codepointCount; + if (count != NULL) + { + *count = codepointCount; + } return codepoints; }