Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
13688:428f86e1fd27 | 13689:5fb687f9965c |
---|---|
5382 ? gaim_contact_get_alias(gaim_buddy_get_contact(this_buddy)) | 5382 ? gaim_contact_get_alias(gaim_buddy_get_contact(this_buddy)) |
5383 : NULL)); | 5383 : NULL)); |
5384 | 5384 |
5385 presence_cmp = gaim_presence_compare( | 5385 presence_cmp = gaim_presence_compare( |
5386 gaim_buddy_get_presence(my_buddy), | 5386 gaim_buddy_get_presence(my_buddy), |
5387 gaim_buddy_get_presence(this_buddy)); | 5387 this_buddy ? gaim_buddy_get_presence(this_buddy) : NULL); |
5388 | 5388 |
5389 if (this_buddy == NULL || | 5389 if (this_buddy == NULL || |
5390 (presence_cmp < 0 || | 5390 (presence_cmp < 0 || |
5391 (presence_cmp == 0 && | 5391 (presence_cmp == 0 && |
5392 (name_cmp < 0 || (name_cmp == 0 && node < n))))) | 5392 (name_cmp < 0 || (name_cmp == 0 && node < n))))) |