mirror of
https://github.com/systemd/systemd.git
synced 2026-07-21 23:10:33 +00:00
fix regression of read_full_file() in fileio.c
my e93c33d4aa broke this stupidly
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
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;
|
||||
|
||||
Reference in New Issue
Block a user