fix regression of read_full_file() in fileio.c

my e93c33d4aa broke this stupidly
This commit is contained in:
Shawn Landden 2013-11-30 20:02:27 -08:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6da49b8b2f
commit d78a28e3d7

View file

@ -240,6 +240,7 @@ int read_full_file(const char *fn, char **contents, size_t *size) {
buf[l] = 0;
*contents = buf;
buf = NULL; /* do not free */
if (size)
*size = l;