X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/d032b6159719b2fbbbd550781b378ca79a25d3a2..1d348e98e3745ef98bf9fa36119ead6294c6c80b:/st.c diff --git a/st.c b/st.c index 64e2cec..b604f0e 100644 --- a/st.c +++ b/st.c @@ -1329,9 +1329,8 @@ execsh(void) die("who are you?\n"); } - if (!(sh = getenv("SHELL"))) { + if ((sh = getenv("SHELL")) == NULL) sh = (pw->pw_shell[0]) ? pw->pw_shell : shell; - } if (opt_cmd) prog = opt_cmd[0];