time: don't segfault with no arguments
This commit is contained in:
		@@ -402,6 +402,7 @@ int time_main(int argc UNUSED_PARAM, char **argv)
 | 
			
		||||
	const char *output_format = default_format;
 | 
			
		||||
	int opt;
 | 
			
		||||
 | 
			
		||||
	opt_complementary = "-1"; /* at least one arg */
 | 
			
		||||
	/* "+": stop on first non-option */
 | 
			
		||||
	opt = getopt32(argv, "+vp");
 | 
			
		||||
	argv += optind;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user