aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1996-07-14 00:06:09 +0000
committerKarl Heuer1996-07-14 00:06:09 +0000
commitc36bcf1b4a142fb5a1396ad0bb681a5349c8fe50 (patch)
tree809f449855e546dcad0f0fd9610209244bafa2f5 /src
parent019226d02db9bd0c462340924d9e2fc6d004cf6a (diff)
downloademacs-c36bcf1b4a142fb5a1396ad0bb681a5349c8fe50.tar.gz
emacs-c36bcf1b4a142fb5a1396ad0bb681a5349c8fe50.zip
(Fmatch_data): If no matching done yet, return Qnil.
Diffstat (limited to 'src')
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index 85c15a0de47..53187c2c485 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1839,7 +1839,7 @@ Use `store-match-data' to reinstate the data in this list.")
1839 int i, len; 1839 int i, len;
1840 1840
1841 if (NILP (last_thing_searched)) 1841 if (NILP (last_thing_searched))
1842 error ("match-data called before any match found"); 1842 return Qnil;
1843 1843
1844 data = (Lisp_Object *) alloca ((2 * search_regs.num_regs) 1844 data = (Lisp_Object *) alloca ((2 * search_regs.num_regs)
1845 * sizeof (Lisp_Object)); 1845 * sizeof (Lisp_Object));