fixed logical error

This commit is contained in:
Igor Malovitsa 2024-03-05 18:29:17 +02:00
parent c70f2d9f2a
commit f976b096dd

2
hbas.c
View file

@ -384,7 +384,7 @@ int slurp(FILE *fd, ByteVec *out) {
rv.len += bread; rv.len += bread;
} }
*out = rv; *out = rv;
err = err || ferror(fd); err = err ? err : ferror(fd);
return err; return err;
} }