mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:12:04 -04:00
Cleanup unused mctx.
memset task->name.
This commit is contained in:
parent
262e8ed36a
commit
9069fc6030
1 changed files with 1 additions and 2 deletions
|
|
@ -71,7 +71,6 @@ struct isc_task {
|
|||
unsigned int magic;
|
||||
isc_taskmgr_t * manager;
|
||||
isc_mutex_t lock;
|
||||
isc_mem_t * mctx;
|
||||
/* Locked by task lock. */
|
||||
task_state_t state;
|
||||
unsigned int references;
|
||||
|
|
@ -176,7 +175,7 @@ isc_task_create(isc_taskmgr_t *manager, unsigned int quantum,
|
|||
task->quantum = quantum;
|
||||
task->flags = 0;
|
||||
#ifdef ISC_TASK_NAMES
|
||||
task->name[0] = '\0';
|
||||
memset(task->name, 0, sizeof task->name);
|
||||
task->tag = NULL;
|
||||
#endif
|
||||
INIT_LINK(task, link);
|
||||
|
|
|
|||
Loading…
Reference in a new issue