diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-10-10 22:57:07 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-10-10 22:57:07 +0000 |
commit | e245a66054cac00f2916fbc9436d926ea2cf4d1c (patch) | |
tree | b36a56e3bede31be2c78a76e0bfe7db73670587a /src/shred.c | |
parent | 489ff7f0cdaa63403aefcce778ea7214dc4e6808 (diff) | |
download | coreutils-e245a66054cac00f2916fbc9436d926ea2cf4d1c.tar.xz |
* src/ls.c (quote_name): Use initializer rather than memset to
initialize an object to zero. This is easier to read and is less
likely to introduce an runtime error due to a mixup. It causes
gcc -W to issue a warning, but you can work around this by
appending -Wno-missing-field-initializers.
* src/pathchk.c (portable_chars_only): Likewise.
* src/shred.c (main): Likewise.
* src/stty.c (main): Likewise.
* src/tr.c (card_of_complement): Likewise.
* src/wc.c (wc): Likewise.
Diffstat (limited to 'src/shred.c')
-rw-r--r-- | src/shred.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shred.c b/src/shred.c index d3b1c4a9c..4c1819ccb 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1091,7 +1091,7 @@ int main (int argc, char **argv) { bool ok = true; - struct Options flags; + struct Options flags = { 0, }; char **file; int n_files; int c; @@ -1106,8 +1106,6 @@ main (int argc, char **argv) atexit (close_stdout); - memset (&flags, 0, sizeof flags); - flags.n_iterations = DEFAULT_PASSES; flags.size = -1; |