changeset 1524:a5c87ada5143

[gaim-migrate @ 1534] fix parser error committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 02 Mar 2001 23:59:49 +0000
parents 8b2d855067cc
children ba8e6e211af5
files src/gtkimhtml.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Fri Mar 02 01:29:20 2001 +0000
+++ b/src/gtkimhtml.c	Fri Mar 02 23:59:49 2001 +0000
@@ -2486,12 +2486,16 @@
 					}
 				}
 			} else if (!g_strcasecmp (tag, "</A>")) {
-				got_tag = TRUE;
 				if (url != NULL) {
+					got_tag = TRUE;
 					NEW_BIT (NEW_TEXT_BIT);
 					g_free (url);
+					url = NULL;
+				} else {
+					intag = FALSE;
+					tpos = 0;
+					continue;
 				}
-				url = NULL;
 			} else if (!g_strncasecmp (tag, "<IMG ", strlen ("<IMG "))) {
 				gchar *t, *e, *src = NULL;
 				gchar *copy = g_strdup (tag);