From b6db3ffca5ec34cae7415d0baab1dafd6ca51939 Mon Sep 17 00:00:00 2001 From: pancake Date: Sat, 14 Oct 2023 12:25:43 +0200 Subject: [PATCH] f --- libr/bin/bin.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libr/bin/bin.c b/libr/bin/bin.c index ebbb2acf4d31a..0dc02b845eea3 100644 --- a/libr/bin/bin.c +++ b/libr/bin/bin.c @@ -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);