# HG changeset patch # User Karl Heuer # Date 880063422 0 # Node ID 2befa7396e4298d4ec0dc830a9624b234c534db0 # Parent 96eee1e730a16d250de960ce38bef2d298792f01 (skip_chars): Check type of `string' before using it. diff -r 96eee1e730a1 -r 2befa7396e42 src/syntax.c --- a/src/syntax.c Thu Nov 20 22:00:57 1997 +0000 +++ b/src/syntax.c Thu Nov 20 22:03:42 1997 +0000 @@ -1149,14 +1149,14 @@ form "X-Y" of STRING, both X and Y must belong to the same character set because a range striding across character sets is meaningless. */ - int *char_ranges - = (int *) alloca (XSTRING (string)->size * (sizeof (int)) * 2); + int *char_ranges; int n_char_ranges = 0; int negate = 0; register int i; int multibyte = !NILP (current_buffer->enable_multibyte_characters); CHECK_STRING (string, 0); + char_ranges = (int *) alloca (XSTRING (string)->size * (sizeof (int)) * 2); if (NILP (lim)) XSETINT (lim, forwardp ? ZV : BEGV);