diff src/gtkblist.c @ 13689:5fb687f9965c

[gaim-migrate @ 16092] Resolve (the other half of) CID 103: "Variable "this_buddy" tracked as NULL was passed to a function that dereferences it." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 24 Apr 2006 20:51:45 +0000
parents a104ce6e2cca
children 2eea3265dbe6
line wrap: on
line diff
--- a/src/gtkblist.c	Mon Apr 24 20:41:15 2006 +0000
+++ b/src/gtkblist.c	Mon Apr 24 20:51:45 2006 +0000
@@ -5384,7 +5384,7 @@
 
 		presence_cmp = gaim_presence_compare(
 			gaim_buddy_get_presence(my_buddy),
-			gaim_buddy_get_presence(this_buddy));
+			this_buddy ? gaim_buddy_get_presence(this_buddy) : NULL);
 
 		if (this_buddy == NULL ||
 			(presence_cmp < 0 ||