Update rtext.c

This commit is contained in:
Ray 2025-11-19 10:21:16 +01:00
parent f21c1cc6ae
commit 265fa7833c

View File

@ -1891,6 +1891,7 @@ void TextAppend(char *text, const char *append, int *position)
int TextFindIndex(const char *text, const char *search) int TextFindIndex(const char *text, const char *search)
{ {
int position = -1; int position = -1;
if (text == NULL) return position;
char *ptr = (char *)strstr(text, search); char *ptr = (char *)strstr(text, search);