summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-28 06:29:33 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-28 06:29:33 +0000
commit297503eec5adf35e7cb531ff8b15af9b2c072835 (patch)
treeffc315881fdf5b3ac26dec1190c44b954b83035b
parenta18779f6fcccabc6e1a150e746b7e59d41b82d0d (diff)
dont rely on random stack state to trigger this issue; force the default stat structs to alternative bit masks
-rw-r--r--test/stat/memcmp-stat.c3
1 files changed, 3 insertions, 0 deletions
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) {