# HG changeset patch # User Richard Laager # Date 1145911905 0 # Node ID 5fb687f9965c1059485cee0dbbc2b5d8ae5c0a23 # Parent 428f86e1fd277da679e9651f5ffbcbdb5ba835b3 [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 diff -r 428f86e1fd27 -r 5fb687f9965c src/gtkblist.c --- 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 ||