You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	compat/getopt: add {} to complex ifs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -46,7 +46,7 @@ static int getopt(int argc, char *argv[], char *opts) | ||||
|     int c; | ||||
|     char *cp; | ||||
|  | ||||
|     if (sp == 1) | ||||
|     if (sp == 1) { | ||||
|         if (optind >= argc || | ||||
|             argv[optind][0] != '-' || argv[optind][1] == '\0') | ||||
|             return EOF; | ||||
| @@ -54,6 +54,7 @@ static int getopt(int argc, char *argv[], char *opts) | ||||
|             optind++; | ||||
|             return EOF; | ||||
|         } | ||||
|     } | ||||
|     optopt = c = argv[optind][sp]; | ||||
|     if (c == ':' || (cp = strchr(opts, c)) == NULL) { | ||||
|         fprintf(stderr, ": illegal option -- %c\n", c); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user