diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2015-11-24 11:07:37 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2015-11-24 11:07:37 +0000 |
| commit | 06ff7ccb5f9873e388444526c75e91adac6beb6d (patch) | |
| tree | 508e4c72e94107d40800e7fcca165989181ff558 /usr.bin/netstat | |
| parent | ac4dad9e2fbfd4b0a08b31f7c759ab06c89552c0 (diff) | |
Notes
Diffstat (limited to 'usr.bin/netstat')
| -rw-r--r-- | usr.bin/netstat/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index af532a6eae10..ce9e81aeb761 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -242,6 +242,8 @@ main(int argc, char *argv[]) af = AF_UNSPEC; argc = xo_parse_args(argc, argv); + if (argc < 0) + exit(EXIT_FAILURE); while ((ch = getopt(argc, argv, "46AaBbdF:f:ghI:iLlM:mN:np:Qq:RrSTsuWw:xz")) != -1) |
