diff options
| author | Karl Heuer | 1997-11-20 22:03:42 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-11-20 22:03:42 +0000 |
| commit | 5df4982e74f8816801c860051d42d8bdda88d6d4 (patch) | |
| tree | 072ea6e85ec45deaf2d3e6b8164f5cb99cc0931b /src | |
| parent | 6492b55df79566111e583d1d296325625e06cbd1 (diff) | |
| download | emacs-5df4982e74f8816801c860051d42d8bdda88d6d4.tar.gz emacs-5df4982e74f8816801c860051d42d8bdda88d6d4.zip | |
(skip_chars): Check type of `string' before using it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/syntax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 371ddedbd74..3c480b41b0d 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1149,14 +1149,14 @@ skip_chars (forwardp, syntaxp, string, lim) | |||
| 1149 | form "X-Y" of STRING, both X and Y must belong to the same | 1149 | form "X-Y" of STRING, both X and Y must belong to the same |
| 1150 | character set because a range striding across character sets is | 1150 | character set because a range striding across character sets is |
| 1151 | meaningless. */ | 1151 | meaningless. */ |
| 1152 | int *char_ranges | 1152 | int *char_ranges; |
| 1153 | = (int *) alloca (XSTRING (string)->size * (sizeof (int)) * 2); | ||
| 1154 | int n_char_ranges = 0; | 1153 | int n_char_ranges = 0; |
| 1155 | int negate = 0; | 1154 | int negate = 0; |
| 1156 | register int i; | 1155 | register int i; |
| 1157 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); | 1156 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); |
| 1158 | 1157 | ||
| 1159 | CHECK_STRING (string, 0); | 1158 | CHECK_STRING (string, 0); |
| 1159 | char_ranges = (int *) alloca (XSTRING (string)->size * (sizeof (int)) * 2); | ||
| 1160 | 1160 | ||
| 1161 | if (NILP (lim)) | 1161 | if (NILP (lim)) |
| 1162 | XSETINT (lim, forwardp ? ZV : BEGV); | 1162 | XSETINT (lim, forwardp ? ZV : BEGV); |