diff options
author | Ruediger Meier | 2017-06-21 03:01:30 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-22 02:56:57 +0200 |
commit | 0caad87fdb87789f40942e14f81539af84c2a55b (patch) | |
tree | d37e7606008f229fc930d9387f27c655e5253702 /login-utils/chsh.c | |
parent | uuidd: remove unused define (diff) | |
download | kernel-qcow2-util-linux-0caad87fdb87789f40942e14f81539af84c2a55b.tar.gz kernel-qcow2-util-linux-0caad87fdb87789f40942e14f81539af84c2a55b.tar.xz kernel-qcow2-util-linux-0caad87fdb87789f40942e14f81539af84c2a55b.zip |
misc: remove superfluous null pointer checks for optarg
This is only needed for optional arguments.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'login-utils/chsh.c')
-rw-r--r-- | login-utils/chsh.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/login-utils/chsh.c b/login-utils/chsh.c index 3bea971cd..10b0bdcda 100644 --- a/login-utils/chsh.c +++ b/login-utils/chsh.c @@ -235,8 +235,6 @@ static void parse_argv(int argc, char **argv, struct sinfo *pinfo) print_shells(); exit(EXIT_SUCCESS); case 's': - if (!optarg) - usage(stderr); pinfo->shell = optarg; break; default: |