mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-04-03 00:00:03 +03:00
Merge 134bdf622f
into 3e2d5b2b9a
This commit is contained in:
commit
dd080e6334
@ -124,10 +124,6 @@ char *read_file_str(int dirfd, const char *path)
|
||||
buf[len] = '\0';
|
||||
if (len && buf[len - 1] == '\n')
|
||||
buf[len - 1] = '\0';
|
||||
if (!strlen(buf)) {
|
||||
free(buf);
|
||||
buf = NULL;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user