From 346b2fb824e1f193dd705adaf1e8436be1306660 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 31 Mar 2022 19:09:59 +0200 Subject: [PATCH] Fix uninitialized variable warning --- impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl.cpp b/impl.cpp index aca15e9..5e4b79b 100644 --- a/impl.cpp +++ b/impl.cpp @@ -240,7 +240,7 @@ ID3D11Resource* createShadowResourceLocked( ATFIX_RESOURCE_INFO resourceInfo = { }; getResourceInfo(pBaseResource, &resourceInfo); - ID3D11Resource* shadowResource; + ID3D11Resource* shadowResource = nullptr; HRESULT hr; switch (resourceInfo.Dim) {