Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 17, 2022
1 parent 7cf654e commit e587bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/R2GhidraCmdDecompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void R2GhidraCmdDecompiler::decompileAt(RVA addr)
return;
}
QString k = QString::number(addr);
bool is_cached = false; // this->cache->contains (k);
bool is_cached = this->cache->contains (k);
task = new R2Task(is_cached? "?e": "pdgj @ " + k);
connect(task, &R2Task::finished, this, [this, addr, k, is_cached]() {
if (is_cached) {
Expand Down Expand Up @@ -75,7 +75,7 @@ void R2GhidraCmdDecompiler::decompileAt(RVA addr)
std::string tmp = codeString.toStdString();
code->code = strdup(tmp.c_str());
if (!is_cached) {
// this->cache->insert(k, r_codemeta_clone (code));
this->cache->insert(k, r_codemeta_clone (code));
}
emit finished(code);
});
Expand Down

0 comments on commit e587bc0

Please sign in to comment.