summaryrefslogtreecommitdiffstats
path: root/lib/libcurses
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-10-09 14:39:50 +0000
committermillert <millert@openbsd.org>2000-10-09 14:39:50 +0000
commitc86f6e73dd1799a2594d0213c98ff7b5610a3362 (patch)
treebdfacea74add65114ff379c9d722ba5246e1489b /lib/libcurses
parentcheck if we have a tcb connected to the destination quoted in the icmp need (diff)
downloadwireguard-openbsd-c86f6e73dd1799a2594d0213c98ff7b5610a3362.tar.xz
wireguard-openbsd-c86f6e73dd1799a2594d0213c98ff7b5610a3362.zip
Add check for NUL home that got missed in the last merge
Diffstat (limited to 'lib/libcurses')
-rw-r--r--lib/libcurses/tinfo/home_terminfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcurses/tinfo/home_terminfo.c b/lib/libcurses/tinfo/home_terminfo.c
index f225d33654b..367bfa68fe7 100644
--- a/lib/libcurses/tinfo/home_terminfo.c
+++ b/lib/libcurses/tinfo/home_terminfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: home_terminfo.c,v 1.5 2000/10/08 22:47:01 millert Exp $ */
+/* $OpenBSD: home_terminfo.c,v 1.6 2000/10/09 14:39:50 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998,2000 Free Software Foundation, Inc. *
@@ -53,7 +53,7 @@ _nc_home_terminfo(void)
if (use_terminfo_vars()) {
if (temp == 0) {
- if ((home = getenv("HOME")) != 0
+ if ((home = getenv("HOME")) != 0 && *home != '\0'
&& my_length <= PATH_MAX) {
temp = typeMalloc(char, my_length);
if (temp == 0)