changeset 14728:c9cc804b53bf

[gaim-migrate @ 17484] Fix Coverity CID 264, jm->body could be NULL committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 15 Oct 2006 16:30:50 +0000
parents 9baeeaa365d1
children b7e145ea9076
files libgaim/protocols/jabber/message.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/jabber/message.c	Sun Oct 15 00:48:35 2006 +0000
+++ b/libgaim/protocols/jabber/message.c	Sun Oct 15 16:30:50 2006 +0000
@@ -138,7 +138,7 @@
 			desctxt = xmlnode_get_data(desc);
 
 			/* I'm all about ugly hacks */
-			if(body->len && !strcmp(body->str, jm->body))
+			if(body->len && jm->body && !strcmp(body->str, jm->body))
 				g_string_printf(body, "<a href='%s'>%s</a>",
 						urltxt, desctxt);
 			else