Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 14, 2023
1 parent 2bf12e3 commit b6db3ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libr/bin/bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,12 @@ R_API RBin *r_bin_new(void) {
Sdb *db = sdb_new0 ();
const char *cs = R2_PREFIX R_SYS_DIR R2_SDB R_SYS_DIR "format" R_SYS_DIR "symclass.sdb";
bool res = sdb_open (db, cs);
const char *s = sdb_const_get (db, "system", 0);
sdb_ns_set (bin->sdb, "symclass", db);
if (res) {
sdb_ns_set (bin->sdb, "symclass", db);
} else {
R_LOG_DEBUG ("Cannot find symclass.sdb");
sdb_free (db);
}
}
bin->cb_printf = (PrintfCallback)printf;
bin->plugins = r_list_newf ((RListFree)r_bin_plugin_free);
Expand Down

0 comments on commit b6db3ff

Please sign in to comment.