diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-05-04 17:27:47 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-07-24 11:40:18 +0200 |
commit | c8e16c12661d18e6ae724a6d89b81c0df9da365a (patch) | |
tree | c3df781d7c50e26e29506e4a55f49e6ce520a323 /tests/elfshphehdr.c | |
parent | 8abf0b5b580094af36b9dc4ed6748379caa32a0e (diff) | |
download | elfutils-c8e16c12661d18e6ae724a6d89b81c0df9da365a.tar.gz |
Write to /dev/null rather than /dev/zero
/dev/zero is meant for reading zeroes. /dev/null is for writing into
nirvana.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/elfshphehdr.c')
-rw-r--r-- | tests/elfshphehdr.c | 2 |
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; |