]> 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)
committerJānis Rūcis <parasti@gmail.com>
Sun, 27 Jun 2010 12:23:21 +0000 (15:23 +0300)
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)
        {