From 875b0ada2526be92100034c4c7de045203de7e3f Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Fri, 28 Jul 2023 21:46:57 +0000 Subject: [PATCH] tests: remove unnecessary set_illegal_callback --- src/tests.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tests.c b/src/tests.c index d3959406c7f29..1a78230e4f54a 100644 --- a/src/tests.c +++ b/src/tests.c @@ -496,7 +496,6 @@ static void run_scratch_tests(void) { secp256k1_scratch_space *scratch; secp256k1_scratch_space local_scratch; - secp256k1_context_set_illegal_callback(CTX, counting_illegal_callback_fn, &ecount); secp256k1_context_set_error_callback(CTX, counting_illegal_callback_fn, &ecount); /* Test public API */ @@ -567,7 +566,6 @@ static void run_scratch_tests(void) { /* cleanup */ secp256k1_scratch_space_destroy(CTX, NULL); /* no-op */ - secp256k1_context_set_illegal_callback(CTX, NULL, NULL); secp256k1_context_set_error_callback(CTX, NULL, NULL); }