Fix stream read line (#1054)

* stream: fix stream_read_line return
* nfc: fix keys load

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
gornekich
2022-03-25 13:43:10 +03:00
committed by GitHub
parent 1fdc5f2950
commit 2ba3a9f09a
3 changed files with 4 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ bool stream_read_line(Stream* stream, string_t str_result) {
}
} while(true);
return stream_eof(stream);
return string_size(str_result) != 0;
}
bool stream_rewind(Stream* stream) {