summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index c75c5b3381..2d7ea2c4c3 100644
--- a/re.c
+++ b/re.c
@@ -2496,7 +2496,7 @@ static st_index_t reg_hash(VALUE re);
static VALUE
rb_reg_hash(VALUE re)
{
- st_index_t hashval;
+ st_index_t hashval = reg_hash(re);
return LONG2FIX(hashval);
}