diff options
author | Shawn Landden <shawn@churchofgit.com> | 2013-11-30 20:02:27 -0800 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-30 23:04:17 -0500 |
commit | d78a28e3d7c8736d9addc2e45762d0f511ebbcdb (patch) | |
tree | 749a48a49f2f88a59569ad4d4cc9dfc2893b88b8 | |
parent | 6da49b8b2f78fd74bb33de961ef8a4c7f727b822 (diff) |
fix regression of read_full_file() in fileio.c
my e93c33d4aa broke this stupidly
-rw-r--r-- | src/shared/fileio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/fileio.c b/src/shared/fileio.c index ac1b409a1c..ede88196b5 100644 --- a/src/shared/fileio.c +++ b/src/shared/fileio.c @@ -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; |