Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
echo-devim committed Apr 12, 2023
1 parent 3b358d8 commit 202b403
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/fasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ void Fasm::loadCapstone() {
cs_option(cs, CS_OPT_SKIPDATA, CS_OPT_ON);
cs_option(cs, CS_OPT_SKIPDATA_SETUP, (size_t)&skipdata);
QByteArray bytes = QByteArray::fromHex(this->textOpcodes->toPlainText().toUtf8());
char *t = bytes.data();
count = cs_disasm(cs, reinterpret_cast<uint8_t*>(QByteArray::fromHex(this->textOpcodes->toPlainText().toUtf8()).data()), bytes.size(), 0, 0, &insn);
if (count > 0) {
this->statusbar->setText("Disassembled " + QString::number(count) + " instructions");
Expand Down

0 comments on commit 202b403

Please sign in to comment.