From f5fd90933a71d7b838c2dab33e177a6e0ff68f50 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Thu, 12 Apr 2012 21:05:23 -0700 Subject: [PATCH] bugfix in event accounting --- dcpu16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dcpu16.c b/dcpu16.c index 7d67cb1..e43c091 100644 --- a/dcpu16.c +++ b/dcpu16.c @@ -116,7 +116,7 @@ int dcpu16_acct_add(struct dcpu16 *vm, dcpu16_acct_event_ match_all, dcpu16_acct */ static inline void acct_event_(struct dcpu16 *vm, dcpu16_acct_event_ ev, DCPU16_WORD addr) { - struct dcpu16_acct_cb *cb; + struct dcpu16_acct_cb *cb = vm->cb_table_; size_t i; for (i = 0; i < vm->cb_table_entries_; i++) { -- 2.45.2