X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=compat%2Fgetopt.c;h=41a641f7c8a9b0fd5cc5f2837dde3c0fb54ed260;hb=2f0f937577358a5730a29d7e7662d0f44421a7e4;hp=9a9c5421dea585cf52c308e5d2e77c8475501991;hpb=d123d9abef52931f54701e5fb0ed569416258f75;p=ffmpeg diff --git a/compat/getopt.c b/compat/getopt.c index 9a9c5421dea..41a641f7c8a 100644 --- a/compat/getopt.c +++ b/compat/getopt.c @@ -54,7 +54,7 @@ static int getopt(int argc, char *argv[], char *opts) } } optopt = c = argv[optind][sp]; - if (c == ':' || (cp = strchr(opts, c)) == NULL) { + if (c == ':' || !(cp = strchr(opts, c))) { fprintf(stderr, ": illegal option -- %c\n", c); if (argv[optind][++sp] == '\0') { optind++;