bugfix in event accounting
authorJustin Wind <justin.wind@gmail.com>
Fri, 13 Apr 2012 04:05:23 +0000 (21:05 -0700)
committerJustin Wind <justin.wind@gmail.com>
Fri, 13 Apr 2012 04:05:23 +0000 (21:05 -0700)
dcpu16.c

index 7d67cb178f88e15aea357c54ee221bb77ae2ff31..e43c09103b74d0d92c9d10e8af3238f064306437 100644 (file)
--- 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++) {