From a36e536a4d5f3e25c50331d3d85cc7ea105eb25e Mon Sep 17 00:00:00 2001 From: Adam- Date: Tue, 25 May 2010 18:23:33 +0000 Subject: [PATCH] Fixed a crash if /ns ghost is used without a password git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2983 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_ghost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ns_ghost.c b/src/core/ns_ghost.c index 72b02efae..28609b2d3 100644 --- a/src/core/ns_ghost.c +++ b/src/core/ns_ghost.c @@ -26,7 +26,7 @@ class CommandNSGhost : public Command CommandReturn Execute(User *u, const std::vector ¶ms) { const char *nick = params[0].c_str(); - std::string pass = params.size() > 1 ? params[1].c_str() : NULL; + std::string pass = params.size() > 1 ? params[1].c_str() : ""; NickAlias *na = findnick(nick); if (!finduser(nick))