Make sure doff is initialized.

This commit is contained in:
Radosław Kujawa 2018-04-26 14:16:04 +02:00
parent 8ca86735df
commit e2bf924fa9
1 changed files with 1 additions and 0 deletions

View File

@ -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) {