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