changeset 13670:a373da801dc1

[gaim-migrate @ 16072] CID 103: Description: Variable "my_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 Thu, 20 Apr 2006 05:19:34 +0000
parents 3c395481f10c
children cafb9a4b206f
files src/gtkblist.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkblist.c	Thu Apr 20 05:19:12 2006 +0000
+++ b/src/gtkblist.c	Thu Apr 20 05:19:34 2006 +0000
@@ -5377,9 +5377,7 @@
 		}
 
 		name_cmp = gaim_utf8_strcasecmp(
-			(my_buddy
-			 ? gaim_contact_get_alias(gaim_buddy_get_contact(my_buddy))
-			 : NULL),
+			gaim_contact_get_alias(gaim_buddy_get_contact(my_buddy)),
 			(this_buddy
 			 ? gaim_contact_get_alias(gaim_buddy_get_contact(this_buddy))
 			 : NULL));