Fix null deref in rasm2 -L

This commit is contained in:
pancake 2019-05-21 18:26:47 +02:00
parent 0e87b15388
commit 736ebdee33

View File

@ -165,7 +165,7 @@ static const char *has_esil(RAsmState *as, const char *name) {
RListIter *iter;
RAnalPlugin *h;
r_list_foreach (as->anal->plugins, iter, h) {
if (!strcmp (name, h->name)) {
if (h->name && !strcmp (name, h->name)) {
return h->esil? "Ae": "A_";
}
}