changeset 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 74b281b4ae29
children d4ca918e041f
files src/conversation.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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))) {