summaryrefslogtreecommitdiff
path: root/ext/digest/md5/md5init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/md5/md5init.c')
-rw-r--r--ext/digest/md5/md5init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/digest/md5/md5init.c b/ext/digest/md5/md5init.c
index 0f5b9b35434..90ab707433c 100644
--- a/ext/digest/md5/md5init.c
+++ b/ext/digest/md5/md5init.c
@@ -29,6 +29,6 @@ Init_md5()
id_metadata = rb_intern("metadata");
- rb_cvar_declare(cDigest_MD5, id_metadata,
- Data_Wrap_Struct(rb_cObject, 0, 0, &md5));
+ rb_cvar_set(cDigest_MD5, id_metadata,
+ Data_Wrap_Struct(rb_cObject, 0, 0, &md5), Qtrue);
}