remove ternary

This commit is contained in:
Igor Malovitsa 2024-03-05 22:19:50 +02:00
parent f976b096dd
commit bd01bc4f8b

4
hbas.c
View file

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