From 52b067fd4fda1288045ccecfd169e8cf81895830 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Sat, 16 Nov 2019 14:29:09 +0500 Subject: [PATCH] Fix possible null pointer dereference. --- dlls/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/sound.cpp b/dlls/sound.cpp index c5061da9..688b4016 100644 --- a/dlls/sound.cpp +++ b/dlls/sound.cpp @@ -1762,7 +1762,7 @@ void CSpeaker::Precache( void ) } void CSpeaker::SpeakerThink( void ) { - const char* szSoundFile = NULL; + const char* szSoundFile = ""; float flvolume = pev->health * 0.1f; float flattenuation = 0.3f; int flags = 0;