summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-12-08 22:57:14 +0000
committermillert <millert@openbsd.org>2002-12-08 22:57:14 +0000
commit661fece656127571c0dc6dc92871dc8bd79dbce1 (patch)
tree15791d7edb0e44b1fc3581026c09e0f60256ca98 /lib/libc/stdlib/getopt.c
parentTreat a file name of "-" as either stdin or stdout, depending on position. (diff)
downloadwireguard-openbsd-661fece656127571c0dc6dc92871dc8bd79dbce1.tar.xz
wireguard-openbsd-661fece656127571c0dc6dc92871dc8bd79dbce1.zip
Fix pasto, spotted by lebel@
Diffstat (limited to 'lib/libc/stdlib/getopt.c')
-rw-r--r--lib/libc/stdlib/getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getopt.c b/lib/libc/stdlib/getopt.c
index 218887dd32f..fc0f8c1bc7b 100644
--- a/lib/libc/stdlib/getopt.c
+++ b/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 <stdio.h>
@@ -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 */