aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2005-04-25 06:53:27 +0000
committerKenichi Handa2005-04-25 06:53:27 +0000
commitdcc694d7fbee077aec7e3f171d6d4161b679d596 (patch)
treeb9af0f5a092e2d41b04dd7ddc0106c7338898345 /src
parent00fcb0a3029562abf2a5abdd4e9012157fe2598f (diff)
downloademacs-dcc694d7fbee077aec7e3f171d6d4161b679d596.tar.gz
emacs-dcc694d7fbee077aec7e3f171d6d4161b679d596.zip
(load_charset_map_from_vector): Fix for the first
iteration.
Diffstat (limited to 'src')
-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)
505 if (from < min_code || to > max_code || from > to || c > MAX_CHAR) 505 if (from < min_code || to > max_code || from > to || c > MAX_CHAR)
506 continue; 506 continue;
507 507
508 if ((n_entries % 0x10000) == 0) 508 if (n_entries > 0 && (n_entries % 0x10000) == 0)
509 { 509 {
510 entries->next = ((struct charset_map_entries *) 510 entries->next = ((struct charset_map_entries *)
511 alloca (sizeof (struct charset_map_entries))); 511 alloca (sizeof (struct charset_map_entries)));