summaryrefslogtreecommitdiff
path: root/io/hpmud/hpmud.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/hpmud/hpmud.c')
-rw-r--r--io/hpmud/hpmud.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io/hpmud/hpmud.c b/io/hpmud/hpmud.c
index 05aaf4077..8be7b7878 100644
--- a/io/hpmud/hpmud.c
+++ b/io/hpmud/hpmud.c
@@ -305,6 +305,7 @@ static int new_device(const char *uri, enum HPMUD_IO_MODE mode, int *result)
{
BUG("invalid uri %s\n", uri);
*result = HPMUD_R_INVALID_URI;
+ index = 0;
goto bugout;
}
msp->device[i].io_mode = mode;