From b799a1275c8e4bb4f1f07ce3e237708902cb8922 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 21:36:22 +0200 Subject: Merging upstream version 2.9.1. Signed-off-by: Daniel Baumann --- WWW/Library/Implementation/SGML.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'WWW/Library/Implementation/SGML.c') diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c index c256685..d689bbd 100644 --- a/WWW/Library/Implementation/SGML.c +++ b/WWW/Library/Implementation/SGML.c @@ -1,5 +1,5 @@ /* - * $LynxId: SGML.c,v 1.186 2023/10/25 22:35:29 tom Exp $ + * $LynxId: SGML.c,v 1.188 2024/04/11 20:22:19 tom Exp $ * * General SGML Parser code SGML.c * ======================== @@ -242,9 +242,10 @@ struct _HTStream { #else static const char *state_name(sgml_state n) { - const char *result = "?"; + const char *result; /* *INDENT-OFF* */ switch (n) { + default: case S_attr: result = "S_attr"; break; case S_attr_gap: result = "S_attr_gap"; break; case S_comment: result = "S_comment"; break; @@ -5023,11 +5024,9 @@ unsigned char *TO_EUC(const unsigned char *jis, unsigned char *d; int to1B, to2B; int in_sjis = 0; - static int nje; int n8bits; int is_JIS; - nje++; n8bits = 0; s = jis; d = euc; -- cgit v1.2.3