# HG changeset patch
# User Tim Ringenbach <marv@pidgin.im>
# Date 1086484825 0
# Node ID a9f97d5258f8cbd46705879d8741af47ff5b7dff
# Parent  f2e75dd2971aa31c9f43f36a591a3fa7829f82fe
[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>

diff -r f2e75dd2971a -r a9f97d5258f8 src/gtkimhtml.c
--- 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;
 					}