From: Justin Wind Date: Fri, 13 Apr 2012 04:05:23 +0000 (-0700) Subject: bugfix in event accounting X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f5fd90933a71d7b838c2dab33e177a6e0ff68f50;p=dcpu16 bugfix in event accounting --- 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++) {