From 25e62f4be4b86975602d9b0c5d510f4547c1c8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Tue, 27 Mar 2018 13:18:29 +0200 Subject: [PATCH] Avoid compiler warning (variable uninitialized). --- src/bus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bus.c b/src/bus.c index a0dfcde..4cbf951 100644 --- a/src/bus.c +++ b/src/bus.c @@ -109,6 +109,8 @@ bus_write_1(bus_t *t, uint16_t addr, uint8_t val) uint16_t off; device_t *d; + off = 0; + bus_access_device(t, addr, &d, &off); if (t->access_debug)