summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2005-04-25 06:53:27 +0000
committerKenichi Handa <handa@m17n.org>2005-04-25 06:53:27 +0000
commitdcc694d7fbee077aec7e3f171d6d4161b679d596 (patch)
treeb9af0f5a092e2d41b04dd7ddc0106c7338898345 /src/charset.c
parent00fcb0a3029562abf2a5abdd4e9012157fe2598f (diff)
downloademacs-dcc694d7fbee077aec7e3f171d6d4161b679d596.tar.gz
emacs-dcc694d7fbee077aec7e3f171d6d4161b679d596.tar.bz2
emacs-dcc694d7fbee077aec7e3f171d6d4161b679d596.zip
(load_charset_map_from_vector): Fix for the first
iteration.
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c
index 5924d2af6dc..e7b080084b2 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -505,7 +505,7 @@ load_charset_map_from_vector (charset, vec, control_flag)
if (from < min_code || to > max_code || from > to || c > MAX_CHAR)
continue;
- if ((n_entries % 0x10000) == 0)
+ if (n_entries > 0 && (n_entries % 0x10000) == 0)
{
entries->next = ((struct charset_map_entries *)
alloca (sizeof (struct charset_map_entries)));