but we may still have thread instance data, which is just
counters
unlang_thread_array[instruction->number].instruction = instruction;
op = &unlang_ops[instruction->type];
- if (!op->thread_instantiate) continue;
/*
* Allocate any thread-specific instance data.
talloc_set_name_const(unlang_thread_array[instruction->number].thread_inst, op->thread_inst_type);
}
- if (op->thread_instantiate(instruction, unlang_thread_array[instruction->number].thread_inst) < 0) {
+ if (op->thread_instantiate && (op->thread_instantiate(instruction, unlang_thread_array[instruction->number].thread_inst) < 0)) {
return -1;
}
}