summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index fadfa664f2..df03be59e9 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)) {