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:
skarg
2019-03-17 13:16:59 +00:00
parent 585b0bae5b
commit 65e602bd3c
2 changed files with 11 additions and 4 deletions
+3
View File
@@ -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);