diff options
author | Kenichi Handa <handa@m17n.org> | 2005-04-25 06:53:27 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2005-04-25 06:53:27 +0000 |
commit | dcc694d7fbee077aec7e3f171d6d4161b679d596 (patch) | |
tree | b9af0f5a092e2d41b04dd7ddc0106c7338898345 /src/charset.c | |
parent | 00fcb0a3029562abf2a5abdd4e9012157fe2598f (diff) | |
download | emacs-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.c | 2 |
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))); |