mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -74,6 +74,7 @@ args_parse(const char *template, int argc, char **argv)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	optreset = 1;
 | 
						optreset = 1;
 | 
				
			||||||
	optind = 1;
 | 
						optind = 1;
 | 
				
			||||||
 | 
						optarg = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	while ((opt = getopt(argc, argv, template)) != -1) {
 | 
						while ((opt = getopt(argc, argv, template)) != -1) {
 | 
				
			||||||
		if (opt < 0)
 | 
							if (opt < 0)
 | 
				
			||||||
@@ -83,6 +84,7 @@ args_parse(const char *template, int argc, char **argv)
 | 
				
			|||||||
			return (NULL);
 | 
								return (NULL);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		args_set(args, opt, optarg);
 | 
							args_set(args, opt, optarg);
 | 
				
			||||||
 | 
							optarg = NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	argc -= optind;
 | 
						argc -= optind;
 | 
				
			||||||
	argv += optind;
 | 
						argv += optind;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user