hwdb: optimize isatty()-per-line away

Fixes: #15407
This commit is contained in:
Lennart Poettering
2020-04-13 11:27:35 +02:00
parent 451fcbfc58
commit 648ba0ee81
+1 -1
View File
@@ -488,7 +488,7 @@ static int import_file(struct trie *trie, const char *filename, uint16_t file_pr
size_t len;
char *pos;
r = read_line(f, LONG_LINE_MAX, &line);
r = read_line_full(f, LONG_LINE_MAX, READ_LINE_NOT_A_TTY, &line);
if (r < 0)
return r;
if (r == 0)