diff options
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))); |