From a4dbfffa1148621e02d7c31f2f3b7411bccd6a22 Mon Sep 17 00:00:00 2001 From: Cort <1944792+cdwfs@users.noreply.github.com> Date: Thu, 24 Jan 2019 21:19:42 -0800 Subject: [PATCH] Fix for "potentially uninitialized variable" warning --- src/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 4eb1305..9001120 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -14525,7 +14525,7 @@ VkResult VmaAllocator_T::AllocateDedicatedMemory( #endif // #if VMA_DEDICATED_ALLOCATION size_t allocIndex; - VkResult res; + VkResult res = VK_SUCCESS; for(allocIndex = 0; allocIndex < allocationCount; ++allocIndex) { res = AllocateDedicatedMemoryPage(