1. readme.txt
- Build instructions modified. - Added valid example of cmd line 2. main.c - Return false if no args passed. Fixes segmentation fault
This commit is contained in:
@@ -464,7 +464,10 @@ bool parse_cmd(
|
||||
ROUTER_PORT *current = head;
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
print_help();
|
||||
return false;
|
||||
}
|
||||
|
||||
/* begin checking cmd parameters */
|
||||
opt = getopt_long(argc, argv, optString, Options, &index);
|
||||
|
||||
Reference in New Issue
Block a user