From b18635a562301e08328e94bf4448cc4a94ad73a3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 2 Feb 2018 01:14:07 +0100 Subject: [PATCH] Fixed a bug in io.c causing a segmentation fault on hard reset. --- src/io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } }