Skip to content

Commit 265fa78

Browse files
committed
Update rtext.c
1 parent f21c1cc commit 265fa78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rtext.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,7 @@ void TextAppend(char *text, const char *append, int *position)
18911891
int TextFindIndex(const char *text, const char *search)
18921892
{
18931893
int position = -1;
1894+
if (text == NULL) return position;
18941895

18951896
char *ptr = (char *)strstr(text, search);
18961897

0 commit comments

Comments
 (0)