mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-25 00:15:46 +01:00
Fix style in execsh
This commit is contained in:
parent
d032b61597
commit
62756fdb49
1 changed files with 1 additions and 2 deletions
3
st.c
3
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];
|
||||
|
|
Loading…
Reference in a new issue