mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 19:52:47 +03:00
Revert "Skip invalid commandline args instead of aborting"
This reverts commit 4ad94124a6
.
This commit is contained in:
parent
d7907bfe4c
commit
b962d3db82
@ -734,10 +734,8 @@ nsoption_commandline(int *pargc, char **argv, struct nsoption_s *opts)
|
|||||||
|
|
||||||
/* check we have an option */
|
/* check we have an option */
|
||||||
/* option must start -- and be as long as the shortest option*/
|
/* option must start -- and be as long as the shortest option*/
|
||||||
if ((arglen < (2+5) ) || (arg[0] != '-') || (arg[1] != '-')) {
|
if ((arglen < (2+5) ) || (arg[0] != '-') || (arg[1] != '-'))
|
||||||
idx++;
|
break;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
arg += 2; /* skip -- */
|
arg += 2; /* skip -- */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user