changeset 20292:2befa7396e42

(skip_chars): Check type of `string' before using it.
author Karl Heuer <kwzh@gnu.org>
date Thu, 20 Nov 1997 22:03:42 +0000
parents 96eee1e730a1
children 31035eff741a
files src/syntax.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);