diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 19:36:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 19:36:22 +0000 |
commit | b799a1275c8e4bb4f1f07ce3e237708902cb8922 (patch) | |
tree | c75168eb236d7b16cda59ed6a27a937367d58dfe /WWW/Library/Implementation/SGML.c | |
parent | Releasing progress-linux version 2.9.0rel.0-2~progress7.99u1. (diff) | |
download | lynx-b799a1275c8e4bb4f1f07ce3e237708902cb8922.tar.xz lynx-b799a1275c8e4bb4f1f07ce3e237708902cb8922.zip |
Merging upstream version 2.9.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'WWW/Library/Implementation/SGML.c')
-rw-r--r-- | WWW/Library/Implementation/SGML.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; |