diff src/conversation.c @ 6054:0bbe26d96e11

[gaim-migrate @ 6504] let jabber join chats without segfaulting committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 07 Jul 2003 14:58:34 +0000
parents 54c37db13279
children 6b4a12cd4caf
line wrap: on
line diff
--- 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))) {