summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-24 12:05:54 +0100
committerRay <[email protected]>2020-02-24 12:05:54 +0100
commit113a580021dc8f9d71c61804e5b8e746369e7626 (patch)
treeca7889b635aa700937852f7fbe8e95727450c326 /src
parenta77273d8d80a113963a56076497c1c80f5b5e229 (diff)
downloadraylib-113a580021dc8f9d71c61804e5b8e746369e7626.tar.gz
raylib-113a580021dc8f9d71c61804e5b8e746369e7626.zip
[rlgl] LoadText() variable scope improvement
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 65117120..3bbf7f00 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3001,12 +3001,11 @@ Shader GetShaderDefault(void)
// NOTE: text chars array should be freed manually
char *LoadText(const char *fileName)
{
- FILE *textFile = NULL;
char *text = NULL;
if (fileName != NULL)
{
- textFile = fopen(fileName,"rt");
+ FILE *textFile = fopen(fileName, "rt");
if (textFile != NULL)
{