Handle all states. (#454473)

2007-07-07  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (g_markup_parse_context_end_parse): Handle
        all states.  (#454473)



svn path=/trunk/; revision=5604
This commit is contained in:
Matthias Clasen 2007-07-08 00:18:38 +00:00 committed by Matthias Clasen
parent 5399815323
commit 77363936cc
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-07-07 Matthias Clasen <mclasen@redhat.com>
* glib/gmarkup.c (g_markup_parse_context_end_parse): Handle
all states. (#454473)
2007-07-06 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c (g_io_win32_check): When WSAEnumNetworkEvents()

View File

@ -1790,6 +1790,7 @@ g_markup_parse_context_end_parse (GMarkupParseContext *context,
break;
case STATE_INSIDE_ATTRIBUTE_NAME:
case STATE_AFTER_ATTRIBUTE_NAME:
set_error (context, error, G_MARKUP_ERROR_PARSE,
_("Document ended unexpectedly inside an attribute name"));
break;
@ -1823,6 +1824,7 @@ g_markup_parse_context_end_parse (GMarkupParseContext *context,
case STATE_AFTER_CLOSE_TAG_SLASH:
case STATE_INSIDE_CLOSE_TAG_NAME:
case STATE_AFTER_CLOSE_TAG_NAME:
set_error (context, error, G_MARKUP_ERROR_PARSE,
_("Document ended unexpectedly inside the close tag for "
"element '%s'"), current_element (context));