'task' is reported when uninitalised
move XTRACE to after 'task' is created so that 'task' is valid
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user