diff --git a/src/io.c b/src/io.c
index 4fee6cdbd..8d71dd8e6 100644
--- a/src/io.c
+++ b/src/io.c
@@ -8,7 +8,7 @@
*
* Implement I/O ports and their operations.
*
- * Version: @(#)io.c 1.0.2 2018/02/01
+ * Version: @(#)io.c 1.0.3 2018/02/02
*
* Authors: Sarah Walker,
* Miran Grca,
@@ -66,7 +66,7 @@ io_init(void)
if (!initialized) {
for (c=0; cnext = NULL;
p->prev = NULL;
p->inb = null_inb;
@@ -99,7 +99,7 @@ io_init(void)
p->priv = NULL;
#else
/* io[c] should be NULL. */
- io[c] = NULL;
+ io[c] = io_last[c] = NULL;
#endif
}
}