Commit fe79d210 authored by Alessandro Rubini's avatar Alessandro Rubini

lib: fix in fdelay_close function

parent d4fae447
......@@ -150,9 +150,11 @@ int fdelay_close(struct fdelay_board *userb)
__define_board(b, userb);
int j;
for (j = 0; j < ARRAY_SIZE(b->fd); j++)
for (j = 0; j < ARRAY_SIZE(b->fd); j++) {
if (b->fd[j] >= 0)
close(b->fd[j]);
b->fd[j] = -1;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment