Skip to content

Commit

Permalink
HACK
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Apr 7, 2024
1 parent a61f0e5 commit 17eb119
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ static const secp256k1_callback default_error_callback = {
#endif

static SECP256K1_INLINE void *checked_malloc(const secp256k1_callback* cb, size_t size) {
void *ret = malloc(size);
if (ret == NULL) {
void *ret_is_it_you = malloc(size);
if (ret_is_it_you == NULL) {
secp256k1_callback_call(cb, "Out of memory");
}
return ret;
return ret_is_it_you;
}

#if defined(__BIGGEST_ALIGNMENT__)
Expand Down

0 comments on commit 17eb119

Please sign in to comment.