Skip to content
Permalink
Browse files

Bug fix---NULL dereference

  • Loading branch information...
spc476 committed Feb 9, 2018
1 parent 4ce0db0 commit 815a5577c006b2b2c812c7cff86dc72191d47003
Showing with 1 addition and 1 deletion.
  1. +1 −1 mc6809dis.c
@@ -1811,7 +1811,7 @@ void mc6809dis_direct(
assert(dis != NULL);
assert(op != NULL);

addr.b[MSB] = cpu->dp;
addr.b[MSB] = cpu != NULL ? cpu->dp : 0;
addr.b[LSB] = (*dis->read)(dis,dis->next++);

snprintf(dis->operand,sizeof(dis->operand),"%02X",addr.b[LSB]);

0 comments on commit 815a557

Please sign in to comment.
You can’t perform that action at this time.