fix infinite loop while parsing command line options
This commit is contained in:
		| @@ -385,7 +385,7 @@ void arg_parse(int argc, char *argv[]) | ||||
| 	{ | ||||
| 		{"init", no_argument, NULL, 'i'}, | ||||
| 	}; | ||||
| 	while ((c = getopt_long(argc, argv,"i", option_string, NULL)) != 0) | ||||
| 	while ((c = getopt_long(argc, argv,"i", option_string, NULL)) != -1) | ||||
| 	{ | ||||
| 		switch(c) | ||||
| 		{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user