diff --git a/src/bus.c b/src/bus.c index 68ebcd4..71bca5b 100644 --- a/src/bus.c +++ b/src/bus.c @@ -64,6 +64,7 @@ bus_access_device(bus_t *t, uint16_t addr, device_t **d, uint16_t *off) device_mapping_t *dm; device_t *dtmp; + doff = 0; *d = NULL; LL_FOREACH(t->dm_head, dm) {