summaryrefslogtreecommitdiff
path: root/usr.bin/sort/coll.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sort/coll.c')
-rw-r--r--usr.bin/sort/coll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sort/coll.c b/usr.bin/sort/coll.c
index 2087817e8bf..3f6b68a1f79 100644
--- a/usr.bin/sort/coll.c
+++ b/usr.bin/sort/coll.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: coll.c,v 1.6 2015/04/01 21:47:19 millert Exp $ */
+/* $OpenBSD: coll.c,v 1.7 2015/04/02 20:58:43 tobias Exp $ */
/*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@@ -120,7 +120,7 @@ set_key_on_keys_array(struct keys_array *ka, struct bwstring *s, size_t ind)
kv = &(ka->key[ind]);
- if (kv->k && kv->k != s)
+ if (kv->k != s)
bwsfree(kv->k);
kv->k = s;
}