summaryrefslogtreecommitdiffstats
path: root/WWW/Library/Implementation/SGML.c
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/SGML.c')
-rw-r--r--WWW/Library/Implementation/SGML.c7
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;