Check if username is a NULL pointer before dereferencing it.

This commit is contained in:
martin 1996-07-03 21:43:48 +00:00
parent 91664726c6
commit c42838f64b

View File

@ -125,7 +125,7 @@ main(argc, argv)
argc -= optind;
argv += optind;
if (argc != 1 || *username == '+' || *username == '-')
if (argc != 1 || (username && (*username == '+' || *username == '-')))
usage();
/*