summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c
index b5dcfac1b..fd4b500be 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -284,7 +284,12 @@ buf_init_chartab(buf, global)
}
++c;
}
+
+ c = *p;
p = skip_to_option_part(p);
+ if (c == ',' && *p == NUL)
+ /* Trailing comma is not allowed. */
+ return FAIL;
}
}
chartab_initialized = TRUE;