mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 16:45:24 +00:00
Cleanup unused mctx.
memset task->name.
This commit is contained in:
@@ -71,7 +71,6 @@ struct isc_task {
|
|||||||
unsigned int magic;
|
unsigned int magic;
|
||||||
isc_taskmgr_t * manager;
|
isc_taskmgr_t * manager;
|
||||||
isc_mutex_t lock;
|
isc_mutex_t lock;
|
||||||
isc_mem_t * mctx;
|
|
||||||
/* Locked by task lock. */
|
/* Locked by task lock. */
|
||||||
task_state_t state;
|
task_state_t state;
|
||||||
unsigned int references;
|
unsigned int references;
|
||||||
@@ -176,7 +175,7 @@ isc_task_create(isc_taskmgr_t *manager, unsigned int quantum,
|
|||||||
task->quantum = quantum;
|
task->quantum = quantum;
|
||||||
task->flags = 0;
|
task->flags = 0;
|
||||||
#ifdef ISC_TASK_NAMES
|
#ifdef ISC_TASK_NAMES
|
||||||
task->name[0] = '\0';
|
memset(task->name, 0, sizeof task->name);
|
||||||
task->tag = NULL;
|
task->tag = NULL;
|
||||||
#endif
|
#endif
|
||||||
INIT_LINK(task, link);
|
INIT_LINK(task, link);
|
||||||
|
Reference in New Issue
Block a user