Merge pull request #54 from smcameron/develop

Prevent readFile from returning uninitialized pointer on fopen() failure.
This commit is contained in:
Stephen J Sweeney 2021-10-01 07:36:26 +01:00 committed by GitHub
commit 40cb97049c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ char *getFileLocation(char *filename)
char *readFile(char *filename)
{
char *buffer;
char *buffer = NULL;
long length;
FILE *file;