summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index 05815c028d..936121f49e 100644
--- a/random.c
+++ b/random.c
@@ -343,7 +343,7 @@ random_free(void *ptr)
static size_t
random_memsize(const void *ptr)
{
- return ptr ? sizeof(rb_random_t) : 0;
+ return sizeof(rb_random_t);
}
static const rb_data_type_t random_data_type = {