diff src/protocols/oscar/oscar.c @ 5125:74139d2562f5

[gaim-migrate @ 5488] properly handle NULL settings, and hopefully fix a potential buddy icon segfault. I'm sure KingAnt will come up with a better fix for this later committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 14 Apr 2003 00:53:44 +0000
parents b37d7d09ec83
children c19cc54f4df6
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Apr 13 22:19:43 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Mon Apr 14 00:53:44 2003 +0000
@@ -3406,7 +3406,8 @@
 		b = gaim_find_buddy(gc->account, sn);
 		gaim_buddy_set_setting(b, "icon_checksum", b16);
 		gaim_blist_save();
-		free(b16);
+		if(b16)
+			free(b16);
 	}
 
 	cur = od->requesticon;