ppc: make sure alias mnememonic is not empty in PPC_printInst()

test2
Nguyen Anh Quynh 10 years ago
parent 22bc86f4fe
commit 3cf62514ce
  1. 2
      arch/PowerPC/PPCInstPrinter.c

@ -198,7 +198,7 @@ void PPC_printInst(MCInst *MI, SStream *O, void *Info)
if (!mnem)
mnem = printAliasInstr(MI, O, Info);
if (mnem) {
if ((mnem != NULL) && (strlen(mnem) > 0)) {
struct ppc_alias alias;
// check to remove the last letter of ('.', '-', '+')
if (mnem[strlen(mnem) - 1] == '-' || mnem[strlen(mnem) - 1] == '+' || mnem[strlen(mnem) - 1] == '.')

Loading…
Cancel
Save