summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/rtext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rtext.c b/src/rtext.c
index 6ad0f90a..62d786ea 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -1892,8 +1892,7 @@ int *LoadCodepoints(const char *text, int *count)
}
// Re-allocate buffer to the actual number of codepoints loaded
- int *temp = (int *)RL_REALLOC(codepoints, codepointCount*sizeof(int));
- if (temp != NULL) codepoints = temp;
+ codepoints = (int *)RL_REALLOC(codepoints, codepointCount*sizeof(int));
*count = codepointCount;