1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00

(Fmatch_data): If no matching done yet, return Qnil.

This commit is contained in:
Karl Heuer 1996-07-14 00:06:09 +00:00
parent 019226d02d
commit c36bcf1b4a

View File

@ -1839,7 +1839,7 @@ Use `store-match-data' to reinstate the data in this list.")
int i, len;
if (NILP (last_thing_searched))
error ("match-data called before any match found");
return Qnil;
data = (Lisp_Object *) alloca ((2 * search_regs.num_regs)
* sizeof (Lisp_Object));