From a4fe2cbd4e882aba730601b9b00b157ee525026f Mon Sep 17 00:00:00 2001 From: shawns-valve Date: Wed, 2 Oct 2024 14:39:52 -0700 Subject: [PATCH] Fix uninitialized filePos for ricochet --- dlls/sound.cpp | 3 ++- ricochet/dlls/sound.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/sound.cpp b/dlls/sound.cpp index 92a4c55..b9b2f32 100644 --- a/dlls/sound.cpp +++ b/dlls/sound.cpp @@ -1541,7 +1541,8 @@ void TEXTURETYPE_Init() char buffer[512]; int i, j; byte *pMemFile; - int fileSize, filePos = 0; + int fileSize = 0; + int filePos = 0; if (fTextureTypeInit) return; diff --git a/ricochet/dlls/sound.cpp b/ricochet/dlls/sound.cpp index ab3fb8b..4229d4c 100644 --- a/ricochet/dlls/sound.cpp +++ b/ricochet/dlls/sound.cpp @@ -1544,7 +1544,8 @@ void TEXTURETYPE_Init() char buffer[512]; int i, j; byte *pMemFile; - int fileSize, filePos; + int fileSize = 0; + int filePos = 0; if (fTextureTypeInit) return;