fix regression of read_full_file() in fileio.c
my e93c33d4aa
broke this stupidly
This commit is contained in:
parent
6da49b8b2f
commit
d78a28e3d7
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue