summaryrefslogtreecommitdiff
path: root/usr.bin/sort/append.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-02 02:41:57 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-02 02:41:57 +0000
commitac33bf2bc3df311c4d87bec5e6617653779e7342 (patch)
treec0898023fc680876b66123cd0ac27d25f199455b /usr.bin/sort/append.c
parentc988b02f15138c64b03c386eaabeb55809074bb4 (diff)
fix yet another malloc problem.
malloc(2) states quite clear that "malloc() allocates uninitialized space" just one malloc'ed memory is cleared by this fix. do a 'sort -u /dev/null' w/ /etc/malloc.conf -> J> to reproduce.
Diffstat (limited to 'usr.bin/sort/append.c')
-rw-r--r--usr.bin/sort/append.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sort/append.c b/usr.bin/sort/append.c
index 055d3e4111d..9542fb5e86b 100644
--- a/usr.bin/sort/append.c
+++ b/usr.bin/sort/append.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: append.c,v 1.3 1997/06/30 05:36:15 millert Exp $ */
+/* $OpenBSD: append.c,v 1.4 1998/05/02 02:41:55 mickey Exp $ */
/*-
* Copyright (c) 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)append.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: append.c,v 1.3 1997/06/30 05:36:15 millert Exp $";
+static char rcsid[] = "$OpenBSD: append.c,v 1.4 1998/05/02 02:41:55 mickey Exp $";
#endif
#endif /* not lint */
@@ -126,7 +126,7 @@ append(keylist, nelem, depth, fp, put, ftbl)
}
}
if (!UNIQUE)
- OUTPUT;
+ OUTPUT
} else if (UNIQUE) {
ppos = keylist;
prec = (RECHEADER *) (*ppos - depth);