From 77653accda72fc8f5ae13a0e1eeeeea14eb0d016 Mon Sep 17 00:00:00 2001 From: stskeeps Date: Sun, 4 Feb 2001 22:06:16 +0000 Subject: [PATCH] . --- src/s_svs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_svs.c b/src/s_svs.c index 6494a2cdd..1f45194e9 100644 --- a/src/s_svs.c +++ b/src/s_svs.c @@ -403,7 +403,7 @@ int m_akill(cptr, sptr, parc, parv) bconf = (ConfigItem_ban *) MyMallocEx(sizeof(ConfigItem_ban)); bconf->flag.type = CONF_BAN_USER; bconf->mask = strdup(make_user_host(usermask, hostmask)); - bconf->reason = strdup(comment); + bconf->reason = comment ? strdup(comment) : NULL; bconf->flag.type2 = CONF_BAN_TYPE_AKILL; add_ConfigItem((ConfigItem *) bconf, (ConfigItem **) &conf_ban); }