Commit 79b9bb3d authored by Jonathan Blandford's avatar Jonathan Blandford
Browse files

chage assert to g_return_if_fail

parent 18dcba8f
......@@ -200,7 +200,11 @@ end_element (Context *context,
element = find_element_info (context->elements, name);
stack_el = (StackElement *) context->stack->data;
g_assert (stack_el->info == element);
// g_assert (stack_el->info == element);
if (stack_el->info == element) {
g_print ("<BR><B>ERROR</B> -- INVALID SYNTAX in tag %s<BR>\n", name);
return;
}
if (element && element->end_element_func)
(* element->end_element_func) (context, name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment