SDL: Fixed an error with goto crossing variable initialization

From 762f4abbd0bb74d3e379ef82af83f0aa51de17e8 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 17 Jul 2026 16:55:43 -0700
Subject: [PATCH] Fixed an error with goto crossing variable initialization

---
 test/testffmpeg_vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/testffmpeg_vulkan.c b/test/testffmpeg_vulkan.c
index 22504b138c07a..c43e7380e7eff 100644
--- a/test/testffmpeg_vulkan.c
+++ b/test/testffmpeg_vulkan.c
@@ -1079,7 +1079,7 @@ static SDL_Texture *CreateVulkanVideoTexturePixFmtDRMPrime(VulkanVideoContext *c
     import_fd_info.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT;
     import_fd_info.fd = dma_buf_fds[0];
 
-    uint32_t memoryTypeIndex = 0;
+    uint32_t memoryTypeIndex;
     if (!FindMemoryIndex(context, mem_reqs.memoryTypeBits, &memoryTypeIndex)) {
         goto error;
     }