summaryrefslogtreecommitdiff
path: root/tests/elfshphehdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/elfshphehdr.c')
-rw-r--r--tests/elfshphehdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/elfshphehdr.c b/tests/elfshphehdr.c
index 5a297e0d..8183937c 100644
--- a/tests/elfshphehdr.c
+++ b/tests/elfshphehdr.c
@@ -152,7 +152,7 @@ main (int argc __attribute__ ((unused)), char **argv __attribute ((unused)))
{
elf_version (EV_CURRENT);
- int fd = fd = open("/dev/zero", O_WRONLY);
+ int fd = open("/dev/null", O_WRONLY);
check ("open", fd >= 0);
Elf *elf;