This commit is contained in:
Matthias Görgens 2025-03-30 17:11:23 -04:00 committed by GitHub
commit dd080e6334
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);