changeset 14457:737a6c286a65

[gaim-migrate @ 17171] SF Patch #1551607 from Alex Badea: "I'm not entirely sure what causes it in general, but on my system it's triggered (only sometimes) by the History plugin on a Yahoo account." The almost identical SF Patch #1549604 from Valdis Kletnieks says: "Unchecked dereference of 'oldfont' in gtkimhtml.c causes a crash when starting up, as 'oldfont' isn't set." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 06 Sep 2006 00:36:04 +0000
parents c9867016ccd7
children cdc4ef325a23
files gtk/gtkimhtml.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkimhtml.c	Wed Sep 06 00:04:45 2006 +0000
+++ b/gtk/gtkimhtml.c	Wed Sep 06 00:36:04 2006 +0000
@@ -2902,7 +2902,7 @@
 								else
 									font->bold = 0;
 							}
-							if((font->bold && !oldfont->bold) || (oldfont->bold && !font->bold))
+							if ((font->bold && oldfont && !oldfont->bold) || (oldfont && oldfont->bold && !font->bold) || (font->bold && !oldfont))
 							{
 								gtk_imhtml_toggle_bold(imhtml);
 							}