1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

io: allow re-opening of file

This commit is contained in:
Steffen Vogel 2019-04-01 18:15:23 +02:00
parent 6c98e8c26f
commit ac05a33310

View file

@ -332,7 +332,7 @@ int io_open(struct io *io, const char *uri)
{
int ret;
assert(io->state == STATE_CHECKED);
assert(io->state == STATE_CHECKED || io->state == STATE_CLOSED);
ret = io_type(io)->open
? io_type(io)->open(io, uri)