From e3486a3e4bca3a72babc81bb9b916ef702f6779e Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sat, 12 Sep 2009 18:39:07 +0000 Subject: [PATCH] fixed a crashbug on /ns set kill. thanks to Phantomal for reporting. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2501 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ns_set.c b/src/core/ns_set.c index eee6e2587..f7425aa42 100644 --- a/src/core/ns_set.c +++ b/src/core/ns_set.c @@ -227,7 +227,7 @@ class CommandNSSet : public Command CommandReturn DoSetKill(User *u, std::vector ¶ms, NickCore *nc) { - ci::string param = params.size() > 1 ? params[1] : NULL; + ci::string param = params.size() > 1 ? params[1] : ""; if (param.empty()) {