summaryrefslogtreecommitdiff
path: root/ext/fiddle/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fiddle/handle.c')
-rw-r--r--ext/fiddle/handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/handle.c b/ext/fiddle/handle.c
index 2f93f23..4104421 100644
--- a/ext/fiddle/handle.c
+++ b/ext/fiddle/handle.c
@@ -46,7 +46,7 @@ fiddle_handle_free(void *ptr)
static size_t
fiddle_handle_memsize(const void *ptr)
{
- return ptr ? sizeof(struct dl_handle) : 0;
+ return sizeof(struct dl_handle);
}
static const rb_data_type_t fiddle_handle_data_type = {