summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/ns_ghost.c2
1 files changed, 1 insertions, 1 deletions
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<ci::string> &params)
{
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))