OSDN Git Service

dont rely on random stack state to trigger this issue; force the default stat structs...
authorMike Frysinger <vapier@gentoo.org>
Sun, 28 Jan 2007 06:29:33 +0000 (06:29 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 28 Jan 2007 06:29:33 +0000 (06:29 -0000)
test/stat/memcmp-stat.c

index 6bc9ddc..3e0143e 100644 (file)
@@ -72,6 +72,9 @@ int main()
        int fd;
        struct stat fst, st;
 
+       memset(&fst, 0xAA, sizeof(fst));
+       memset(&st, 0x55, sizeof(st));
+
        unlink(".testfile");
        fd = open(".testfile", O_WRONLY | O_CREAT | O_EXCL, 0);
        if (fd < 0) {