diff --git a/src/ArchMap.cpp b/src/ArchMap.cpp index 1d8d8588..3157f460 100644 --- a/src/ArchMap.cpp +++ b/src/ArchMap.cpp @@ -139,7 +139,10 @@ static const std::map compiler_map = { std::string CompilerFromCore(RzCore *core) { - RzBinInfo *info = rz_bin_get_info(core->bin); + RzBinObject *bobj = rz_bin_cur_object(core->bin); + if (!bobj) + return std::string(); + const RzBinInfo *info = rz_bin_object_get_info(bobj); if (!info || !info->rclass) return std::string();