Skip to content

Commit

Permalink
Fix isAnExport comment and check for NULL in rz_core_bin_relocs_print
Browse files Browse the repository at this point in the history
  • Loading branch information
ret2libc committed Aug 17, 2021
1 parent 9d9df6e commit 0aca6b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion librz/core/cbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2104,7 +2104,7 @@ RZ_IPI void rz_core_bin_entries_print(RzCore *core, RzCmdStateOutput *state) {
}

static bool isAnExport(RzBinSymbol *s) {
/* workaround for some bin plugs */
/* workaround for some RzBinPlugins */
if (s->is_imported) {
return false;
}
Expand Down Expand Up @@ -2354,6 +2354,7 @@ RZ_IPI void rz_core_bin_main_print(RzCore *core, RzCmdStateOutput *state) {
}

RZ_IPI void rz_core_bin_relocs_print(RzCore *core, RzCmdStateOutput *state) {
rz_return_if_fail(core &&b state);
RzBinFile *bf = rz_bin_cur(core->bin);
RzBinObject *o = bf ? bf->o : NULL;
if (!o) {
Expand Down

0 comments on commit 0aca6b8

Please sign in to comment.