Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/man check_pager() was using an uninitialized variabl...
details: https://anonhg.NetBSD.org/src/rev/ab14c61fde59
branches: trunk
changeset: 487426:ab14c61fde59
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Jun 07 18:52:31 2000 +0000
description:
check_pager() was using an uninitialized variable; fix it.
diffstat:
usr.bin/man/man.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r aa92df0ff8b8 -r ab14c61fde59 usr.bin/man/man.c
--- a/usr.bin/man/man.c Wed Jun 07 18:27:39 2000 +0000
+++ b/usr.bin/man/man.c Wed Jun 07 18:52:31 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: man.c,v 1.23 2000/05/27 21:33:26 jdolecek Exp $ */
+/* $NetBSD: man.c,v 1.24 2000/06/07 18:52:31 thorpej Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95";
#else
-__RCSID("$NetBSD: man.c,v 1.23 2000/05/27 21:33:26 jdolecek Exp $");
+__RCSID("$NetBSD: man.c,v 1.24 2000/06/07 18:52:31 thorpej Exp $");
#endif
#endif /* not lint */
@@ -677,7 +677,7 @@
check_pager(name)
const char *name;
{
- const char *p, *save;
+ const char *p;
/*
* if the user uses "more", we make it "more -s"; watch out for
@@ -692,7 +692,7 @@
/* make sure it's "more", not "morex" */
if (!strncmp(p, "more", 4) && (!p[4] || isspace((unsigned char)p[4]))){
char *newname;
- (void)asprintf(&newname, "%s %s", save, "-s");
+ (void)asprintf(&newname, "%s %s", p, "-s");
name = newname;
}
Home |
Main Index |
Thread Index |
Old Index