summaryrefslogtreecommitdiff
path: root/src/unistd/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/getopt.c')
-rw-r--r--src/unistd/getopt.c2
1 files changed, 1 insertions, 1 deletions
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;
}