From 297503eec5adf35e7cb531ff8b15af9b2c072835 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 28 Jan 2007 06:29:33 +0000 Subject: dont rely on random stack state to trigger this issue; force the default stat structs to alternative bit masks --- test/stat/memcmp-stat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/stat/memcmp-stat.c b/test/stat/memcmp-stat.c index 6bc9ddc01..3e0143e94 100644 --- a/test/stat/memcmp-stat.c +++ b/test/stat/memcmp-stat.c @@ -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) { -- cgit v1.2.3