changeset 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 428f86e1fd27
children 6a86f4ec744e
files src/gtkblist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 ||