Check if username is a NULL pointer before dereferencing it.
This commit is contained in:
parent
91664726c6
commit
c42838f64b
@ -125,7 +125,7 @@ main(argc, argv)
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 1 || *username == '+' || *username == '-')
|
||||
if (argc != 1 || (username && (*username == '+' || *username == '-')))
|
||||
usage();
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user