]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
IRC: fix crash due to a missing prefix
authorJānis Rūcis <parasti@gmail.com>
Fri, 2 Apr 2010 16:57:03 +0000 (19:57 +0300)
committernitroxis <nitroxis@wtwrp.de>
Fri, 10 Jan 2014 19:33:37 +0000 (20:33 +0100)
irc.c

diff --git a/irc.c b/irc.c
index 5e2aa546ee02b4d3a0c1eceb4f2b4735f121cee4..df016e1461046da7ddf209ed52e535a2dbd4ff87 100644 (file)
--- a/irc.c
+++ b/irc.c
@@ -184,7 +184,7 @@ static ircmessage_t *IRC_ParseMessage(const char *line)
                line += strspn(line, " ");
        }
        else
-               msg->prefix = NULL;
+               msg->prefix = Mem_strdup(irc_mempool, "");
 
        if (line == line_end)
        {