[clang,warnings] fix Wjump-misses-init

This commit is contained in:
Armin Novak
2026-01-08 10:32:29 +01:00
parent df44b4a493
commit 67974457b8

View File

@@ -196,9 +196,12 @@ static void* smartcard_context_new(void* smartcard, SCARDCONTEXT hContext)
WLog_ERR(TAG, "MessageQueue_New failed!");
goto fail;
}
wObject* obj = MessageQueue_Object(pContext->IrpQueue);
WINPR_ASSERT(obj);
obj->fnObjectFree = smartcard_operation_queue_free;
{
wObject* obj = MessageQueue_Object(pContext->IrpQueue);
WINPR_ASSERT(obj);
obj->fnObjectFree = smartcard_operation_queue_free;
}
pContext->thread = CreateThread(NULL, 0, smartcard_context_thread, pContext, 0, NULL);