Skip to content

Commit ec82807

Browse files
committed
Update rtext.c
1 parent 33cee11 commit ec82807

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rtext.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,10 @@ Rectangle GetGlyphAtlasRec(Font font, int codepoint)
14521452
// NOTE: Returned lines end with null terminator '\0'
14531453
char **LoadTextLines(const char *text, int *count)
14541454
{
1455+
char **lines = NULL;
1456+
1457+
if (text == NULL) { *count = 0; return lines; }
1458+
14551459
int lineCount = 1;
14561460
int textSize = (int)strlen(text);
14571461

0 commit comments

Comments
 (0)