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:
parent
6c98e8c26f
commit
ac05a33310
1 changed files with 1 additions and 1 deletions
2
lib/io.c
2
lib/io.c
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue