diff --git a/ext/standard/file.c b/ext/standard/file.c index fadfa664f2c..df03be59e98 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1646,7 +1646,7 @@ PHP_FUNCTION(mmapfile) char *in_addr; struct stat f_stat; - memset (&f_stat, 0, sizeof (stat)); + memset (&f_stat, 0, sizeof (f_stat)); /* check args */ switch (ARG_COUNT(ht)) {