From 9724b8e17bd23eac279c12565fc4098e36ac6ecc Mon Sep 17 00:00:00 2001 From: Branan Purvine-Riley Date: Sun, 16 Mar 2014 14:39:19 -0700 Subject: [PATCH] Fix uninitalized pointer assumed to be null in Listener.XMode console command --- Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp index 30a2e19a..496a0e95 100644 --- a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp +++ b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp @@ -3631,7 +3631,7 @@ PF_CONSOLE_CMD( Listener, XMode, "bool b", "Sets velocity and position to avatar plSetListenerMsg *set = nil; plKey pKey = plNetClientMgr::GetInstance()->GetLocalPlayerKey(); - plListener* pListener; + plListener* pListener = nullptr; if( (bool)params[ 0 ] ) {