'task' is reported when uninitalised

move XTRACE to after 'task' is created so that 'task' is valid
This commit is contained in:
Mark Andrews
2021-11-01 17:42:37 +11:00
parent 17716214f4
commit f80a474e59
+2 -2
View File
@@ -210,11 +210,11 @@ isc_task_create_bound(isc_taskmgr_t *manager, unsigned int quantum,
REQUIRE(VALID_MANAGER(manager));
REQUIRE(taskp != NULL && *taskp == NULL);
XTRACE("isc_task_create");
task = isc_mem_get(manager->mctx, sizeof(*task));
*task = (isc_task_t){ 0 };
XTRACE("isc_task_create");
isc_taskmgr_attach(manager, &task->manager);
if (threadid == -1) {