about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/SGML.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2010-06-18 10:58:18 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2010-06-18 10:58:18 -0400
commit8c493b23398b1e07fecaa540c954b169947d7a21 (patch)
tree79893c4b5d2d6aff139e521b748a0345094b6e85 /WWW/Library/Implementation/SGML.c
parent511bc0c05c0d5674e5d41490969e11ef5c79de8b (diff)
downloadlynx-snapshots-8c493b23398b1e07fecaa540c954b169947d7a21.tar.gz
snapshot of project "lynx", label v2-8-8dev_3f
Diffstat (limited to 'WWW/Library/Implementation/SGML.c')
-rw-r--r--WWW/Library/Implementation/SGML.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c
index d55bf452..0bd56de8 100644
--- a/WWW/Library/Implementation/SGML.c
+++ b/WWW/Library/Implementation/SGML.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: SGML.c,v 1.134 2010/06/16 23:27:40 tom Exp $
+ * $LynxId: SGML.c,v 1.135 2010/06/18 09:59:35 tom Exp $
  *
  *			General SGML Parser code		SGML.c
  *			========================
@@ -1099,7 +1099,8 @@ static void end_element(HTStream *context, HTTag * old_tag)
 	    CTRACE((tfp,
 		    "SGML: Nesting <%s>...<%s> \t<- ***invalid end </%s>\n",
 		    old_tag->name,
-		    context->element_stack->tag->name,
+		    context->element_stack ?
+		    context->element_stack->tag->name : "none",
 		    old_tag->name));
 	    return;
 	}