Skip to content

Commit

Permalink
Remove assert in hash_get_int()
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah authored and XVilka committed Mar 2, 2021
1 parent 77d7550 commit fdaf1ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion librz/core/agraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fdaf1ad

Please sign in to comment.