Merge pull request #54 from smcameron/develop
Prevent readFile from returning uninitialized pointer on fopen() failure.
This commit is contained in:
commit
40cb97049c
|
@ -44,7 +44,7 @@ char *getFileLocation(char *filename)
|
|||
|
||||
char *readFile(char *filename)
|
||||
{
|
||||
char *buffer;
|
||||
char *buffer = NULL;
|
||||
long length;
|
||||
FILE *file;
|
||||
|
||||
|
|
Loading…
Reference in New Issue