OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a18779f
)
dont rely on random stack state to trigger this issue; force the default stat structs...
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 28 Jan 2007 06:29:33 +0000
(06:29 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Sun, 28 Jan 2007 06:29:33 +0000
(06:29 -0000)
test/stat/memcmp-stat.c
patch
|
blob
|
history
diff --git
a/test/stat/memcmp-stat.c
b/test/stat/memcmp-stat.c
index
6bc9ddc
..
3e0143e
100644
(file)
--- 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) {