diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-25 21:08:46 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-25 21:08:46 -0500 |
| commit | f26bf1396557e4bc739d6a7703099f75bfe2fb99 (patch) | |
| tree | 1ac1d21defcccac8032590aa6bc145b9d8877016 /src/unistd/getopt.c | |
| parent | 21f6ab11f8554328772ac992ced6947b2b67df65 (diff) | |
fix warning from -Wall
Diffstat (limited to 'src/unistd/getopt.c')
| -rw-r--r-- | src/unistd/getopt.c | 2 |
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; } |
