diff options
| -rw-r--r-- | gnu/usr.bin/sort/sort.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/sort/sort.c b/gnu/usr.bin/sort/sort.c index f1976b4ff560..21f4480c37a3 100644 --- a/gnu/usr.bin/sort/sort.c +++ b/gnu/usr.bin/sort/sort.c @@ -19,6 +19,8 @@ The author may be reached (Email) at the address mike@gnu.ai.mit.edu, or (US mail) as Mike Haertel c/o Free Software Foundation. */ +/* $FreeBSD$ */ + #include <config.h> /* Get isblank from GNU libc. */ @@ -1860,6 +1862,7 @@ main (int argc, char **argv) insertkey (key); key = (struct keyfield *) xmalloc (sizeof (struct keyfield)); + memset (key, 0, sizeof (struct keyfield)); key->eword = -1; key->ignore = NULL; key->translate = NULL; |
