From 4c2aa74c36143c93e4c36e024e6d897d8b992570 Mon Sep 17 00:00:00 2001 From: nohar Date: Sat, 6 Aug 2005 11:47:09 +0000 Subject: [PATCH] segv bugfix --- src/irc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irc.c b/src/irc.c index e4d3b79..f36c0df 100644 --- a/src/irc.c +++ b/src/irc.c @@ -1878,7 +1878,8 @@ void irc_server_shutdown(struct link_server *s) if (LINK(s)->prev_ircmask) free(LINK(s)->prev_ircmask); - LINK(s)->prev_ircmask = strdup(s->irc_mask); + if (s->irc_mask) + LINK(s)->prev_ircmask = strdup(s->irc_mask); }