diff src/gtkimhtml.c @ 9186:a9f97d5258f8

[gaim-migrate @ 9981] This fixes bug 961911 Pasting HTML with images (from firefire) crashes It doesn't actually let you paste the images, just ignores the tags. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 06 Jun 2004 01:20:25 +0000
parents f06013ff80d9
children 395e62cf7bf6
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sat Jun 05 19:29:30 2004 +0000
+++ b/src/gtkimhtml.c	Sun Jun 06 01:20:25 2004 +0000
@@ -2197,7 +2197,8 @@
 							break;
 
 						id = gtk_imhtml_get_html_opt(tag, "ID=");
-
+						if (!id)
+							break;
 						gtk_imhtml_insert_image_at_iter(imhtml, atoi(id), iter);
 						break;
 					}