file_readAll fix
This commit is contained in:
parent
73b199828c
commit
cef4fe4002
@ -86,7 +86,7 @@ Maybe file_readAll(File* file, char** allBytes){
|
||||
uint64 i=0;
|
||||
while(true){
|
||||
rezult=fgetc(file);
|
||||
if(rezult!=EOF){
|
||||
if(rezult==EOF){
|
||||
if(ferror(file))
|
||||
safethrow(ERR_IO,; StringBuilder_free(sb));
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user