summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ftp/cmds.c')
-rw-r--r--usr.bin/ftp/cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c
index f0a9f412abf..412c411a820 100644
--- a/usr.bin/ftp/cmds.c
+++ b/usr.bin/ftp/cmds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmds.c,v 1.29 1998/09/01 17:08:22 deraadt Exp $ */
+/* $OpenBSD: cmds.c,v 1.30 1999/06/10 22:38:02 pjanzen Exp $ */
/* $NetBSD: cmds.c,v 1.27 1997/08/18 10:20:15 lukem Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: cmds.c,v 1.29 1998/09/01 17:08:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmds.c,v 1.30 1999/06/10 22:38:02 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -2195,7 +2195,7 @@ page(argc, argv)
return;
}
p = getenv("PAGER");
- if (p == NULL)
+ if (p == NULL || (*p == '\0'))
p = PAGER;
if ((pager = malloc(strlen(p) + 2)) == NULL)
errx(1, "Can't allocate memory for $PAGER");