From af1f87a00f27a6f2fc65396b62dd323748d877aa Mon Sep 17 00:00:00 2001 From: Derision Date: Sun, 3 Mar 2013 22:26:57 +0000 Subject: [PATCH] Fixed uninitialised variabled tempBot in #bot stance command (cppcheck) --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 48f9fc9a1..17bdc2cae 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -15372,7 +15372,7 @@ void Bot::ProcessBotCommands(Client *c, const Seperator *sep) { if(!strcasecmp(sep->arg[1], "stance")) { if(sep->argnum == 3){ - Bot* tempBot; + Bot* tempBot = NULL; std::string botName = std::string(sep->arg[2]); if(!botName.empty())