aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 824fc800ab..073c9c9817 100644
--- a/file.c
+++ b/file.c
@@ -378,7 +378,7 @@ rb_file_path(VALUE obj)
static size_t
stat_memsize(const void *p)
{
- return p ? sizeof(struct stat) : 0;
+ return sizeof(struct stat);
}
static const rb_data_type_t stat_data_type = {