+2004-12-05 Richard M. Stallman <rms@gnu.org>
+
+ * regex.c (regex_compile): Fix end-of-pattern case for space.
+
2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
}
/* If the spaces are followed by a repetition op,
treat them normally. */
- if (p1 == pend
- || (*p1 == '*' || *p1 == '+' || *p1 == '?'
+ if (p1 != pend
+ && (*p1 == '*' || *p1 == '+' || *p1 == '?'
|| (*p1 == '\\' && p1 + 1 != pend && p1[1] == '{')))
goto normal_char;