summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/re.c b/re.c
index d4455c349b..642e9b86d0 100644
--- a/re.c
+++ b/re.c
@@ -725,6 +725,7 @@ reg_match(re, str)
{
int start;
+ if (NIL_P(str)) return FALSE;
str = str_to_str(str);
start = reg_search(re, str, 0, 0);
if (start < 0) {