This commit is contained in:
Matthias Görgens 2025-03-15 05:25:23 +01:00 committed by GitHub
commit fa1a0e77d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);