summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-23 03:24:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-23 03:24:28 +0000
commitb27c743763ddd3bff2d1c4071c1824197e418118 (patch)
tree514fa95f4f1ce5a350fb216133efb71e48088091 /re.c
parentb5fed06c2abd85ff37adf115e718fcae5ecd95f1 (diff)
* re.c (make_regexp): should not return junk address during
compile time. [ruby-dev:26206] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 46aa8e5..cec9d0f 100644
--- a/re.c
+++ b/re.c
@@ -643,6 +643,7 @@ make_regexp(s, len, flags)
if (err != NULL) {
re_free_pattern(rp);
rb_reg_raise(s, len, err, 0);
+ return 0;
}
return rp;
}