summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-03-18 22:39:41 +0000
committermillert <millert@openbsd.org>2015-03-18 22:39:41 +0000
commitd697ea3904bb1e7aeb2b2e254f167f782e0385d8 (patch)
tree3ec08ae4d3f10100f63a3aac419f7c2eea7f6a73
parentInstead of embedding interface names in a sockaddr use their indexes (diff)
downloadwireguard-openbsd-d697ea3904bb1e7aeb2b2e254f167f782e0385d8.tar.xz
wireguard-openbsd-d697ea3904bb1e7aeb2b2e254f167f782e0385d8.zip
nl_langinfo() cannot return NULL; from Andre Smagin
-rw-r--r--usr.bin/sort/bwstring.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/sort/bwstring.c b/usr.bin/sort/bwstring.c
index a2d4474ce72..ee292a014c6 100644
--- a/usr.bin/sort/bwstring.c
+++ b/usr.bin/sort/bwstring.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwstring.c,v 1.1 2015/03/17 17:45:13 millert Exp $ */
+/* $OpenBSD: bwstring.c,v 1.2 2015/03/18 22:39:41 millert Exp $ */
/*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@@ -67,8 +67,6 @@ initialise_months(void)
for (i = 0; i < 12; i++) {
cmonths[i] = NULL;
tmp = nl_langinfo(item[i]);
- if (tmp == NULL)
- continue;
if (debug_sort)
printf("month[%d]=%s\n", i, tmp);
len = strlen(tmp);
@@ -94,8 +92,6 @@ initialise_months(void)
for (i = 0; i < 12; i++) {
wmonths[i] = NULL;
tmp = nl_langinfo(item[i]);
- if (tmp == NULL)
- continue;
if (debug_sort)
printf("month[%d]=%s\n", i, tmp);
len = strlen(tmp);