summaryrefslogtreecommitdiff
path: root/ext/digest/sha1/sha1init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/sha1/sha1init.c')
-rw-r--r--ext/digest/sha1/sha1init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/digest/sha1/sha1init.c b/ext/digest/sha1/sha1init.c
index ecf4aeb198b..70bc4f9f524 100644
--- a/ext/digest/sha1/sha1init.c
+++ b/ext/digest/sha1/sha1init.c
@@ -29,6 +29,6 @@ Init_sha1()
id_metadata = rb_intern("metadata");
- rb_cvar_declare(cDigest_SHA1, id_metadata,
- Data_Wrap_Struct(rb_cObject, 0, 0, &sha1));
+ rb_cvar_set(cDigest_SHA1, id_metadata,
+ Data_Wrap_Struct(rb_cObject, 0, 0, &sha1), Qtrue);
}