No use checkinf if env is true in the branch where it is false (Coverity CID 1164462).

This commit is contained in:
Petter Reinholdtsen 2014-01-28 22:29:30 +00:00
parent 8478327498
commit 992c7a70d7

View File

@ -2788,7 +2788,7 @@ int telinit(char *progname, int argc, char **argv)
if (!strchr("0123456789SsQqAaBbCcUu", argv[optind][0]))
usage(progname);
request.cmd = INIT_CMD_RUNLVL;
request.runlevel = env ? 0 : argv[optind][0];
request.runlevel = argv[optind][0];
request.sleeptime = sltime;
}