Skip to content

Commit

Permalink
Fix insert_update() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah committed May 15, 2024
1 parent 251ab16 commit cacb2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/util/ht/ht_inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ RZ_API bool Ht_(update_key)(RZ_NONNULL HtName_(Ht) *ht, const KEY_TYPE old_key,
}

// Associate the existing value with new_key
bool inserted = insert_update(ht, new_key, value, false, NULL);
bool inserted = insert_update(ht, new_key, value, false, NULL) > 0;
if (!inserted) {
return false;
}
Expand Down

0 comments on commit cacb2e5

Please sign in to comment.