From e0fe3085eb6f61cbd3984b9ea6b2e61b7e2207e6 Mon Sep 17 00:00:00 2001 From: millert <> Date: Sun, 8 Dec 2002 22:57:14 +0000 Subject: Fix pasto, spotted by lebel@ --- src/lib/libc/stdlib/getopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libc/stdlib/getopt.c') diff --git a/src/lib/libc/stdlib/getopt.c b/src/lib/libc/stdlib/getopt.c index 218887dd32..fc0f8c1bc7 100644 --- a/src/lib/libc/stdlib/getopt.c +++ b/src/lib/libc/stdlib/getopt.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: getopt.c,v 1.3 2002/12/08 17:52:26 millert Exp $"; +static char *rcsid = "$OpenBSD: getopt.c,v 1.4 2002/12/08 22:57:14 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -63,7 +63,7 @@ getopt(nargc, nargv, ostr) static char *place = EMSG; /* option letter processing */ char *oli; /* option letter list index */ - if (options == NULL) + if (ostr == NULL) return (-1); if (optreset || !*place) { /* update scanning pointer */ -- cgit v1.2.3-55-g6feb