diff --git a/renderdoc/driver/vulkan/vk_common.h b/renderdoc/driver/vulkan/vk_common.h index ed201e996..d3bc09881 100644 --- a/renderdoc/driver/vulkan/vk_common.h +++ b/renderdoc/driver/vulkan/vk_common.h @@ -408,7 +408,7 @@ void CopyNextChainForPatching(const char *structName, byte *&tempMem, VkBaseInSt template VkStruct *UnwrapStructAndChain(CaptureState state, byte *&tempMem, const VkStruct *base) { - VkBaseInStructure dummy; + VkBaseInStructure dummy = {}; dummy.pNext = (const VkBaseInStructure *)base; UnwrapNextChain(state, TypeName().c_str(), tempMem, &dummy);