mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Merge branch '4077-add-RUNTIME_CHECK-around-wrap' into 'main'
Ensure "wrap" variable is non-NULL Closes #4077 See merge request isc-projects/bind9!7948
This commit is contained in:
@@ -57,6 +57,7 @@ struct thread_wrap {
|
||||
static struct thread_wrap *
|
||||
thread_wrap(isc_threadfunc_t func, void *arg) {
|
||||
struct thread_wrap *wrap = malloc(sizeof(*wrap));
|
||||
RUNTIME_CHECK(wrap != NULL);
|
||||
*wrap = (struct thread_wrap){
|
||||
.func = func,
|
||||
.arg = arg,
|
||||
|
Reference in New Issue
Block a user