]> granicus.if.org Git - php/commitdiff
Either sizeof(struct stat) or sizeof f_stat, but not sizeof stat.
authorSascha Schumann <sas@php.net>
Sat, 13 Oct 2001 23:43:49 +0000 (23:43 +0000)
committerSascha Schumann <sas@php.net>
Sat, 13 Oct 2001 23:43:49 +0000 (23:43 +0000)
ext/standard/file.c

index fadfa664f2cb680f3be2fb2df1efbc8a10008b50..df03be59e98995bc276b706d3f2e56946c0b4f92 100644 (file)
@@ -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)) {