# HG changeset patch # User Nathan Walp # Date 1057589914 0 # Node ID 0bbe26d96e112b989f4c79bc5cbec88b2a9d99cf # Parent 74b281b4ae295794268fac0d9d3db586320d3343 [gaim-migrate @ 6504] let jabber join chats without segfaulting committer: Tailor Script diff -r 74b281b4ae29 -r 0bbe26d96e11 src/conversation.c --- a/src/conversation.c Mon Jul 07 14:49:55 2003 +0000 +++ b/src/conversation.c Mon Jul 07 14:58:34 2003 +0000 @@ -110,7 +110,7 @@ } who = g_utf8_strdown(gaim_connection_get_display_name(gc), -1); - n = strlen(who); + n = who ? strlen(who) : 0; if (n > 0 && (p = strstr(msg, who)) != NULL) { if ((p == msg || !isalnum(*(p - 1))) && !isalnum(*(p + n))) {