From f26bf1396557e4bc739d6a7703099f75bfe2fb99 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 25 Feb 2019 21:08:46 -0500 Subject: fix warning from -Wall --- src/unistd/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unistd/getopt.c') diff --git a/src/unistd/getopt.c b/src/unistd/getopt.c index dc1803dd..a2dbea7b 100644 --- a/src/unistd/getopt.c +++ b/src/unistd/getopt.c @@ -8,7 +8,7 @@ int getopt(int argc, char * const argv[], const char *optstring) static int optchar = 0; char *cursor = NULL; - if (optind = 0 || argv[optind][optchar] == '\0') { + if (optind == 0 || argv[optind][optchar] == '\0') { optind++; optchar = 0; } -- cgit v1.2.1