From fdaf1adc6960d2b573c43c32c791c77c5f15e2ec Mon Sep 17 00:00:00 2001 From: Paul I Date: Mon, 1 Mar 2021 20:56:41 +0300 Subject: [PATCH] Remove assert in hash_get_int() --- librz/core/agraph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/librz/core/agraph.c b/librz/core/agraph.c index e58f580a99e..21fe78aed6f 100644 --- a/librz/core/agraph.c +++ b/librz/core/agraph.c @@ -1032,7 +1032,9 @@ static RzGraphNode *get_sibling(const RzAGraph *g, const RzANode *n, int is_left static int hash_get_int(HtPU *ht, const void *key) { bool found; int val = (int)(size_t)ht_pu_find(ht, key, &found); - rz_return_val_if_fail(found, 0); + if (!found) { + val = 0; + } return val; }