Commit c36bcf1b authored by Karl Heuer's avatar Karl Heuer
Browse files

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

parent 019226d0
......@@ -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));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment