aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2015-07-24 07:44:34 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2015-07-24 07:44:34 +0200
commit62756fdb4945a80f4a53e6d354d5d93f51035517 (patch)
tree11c0fa7b3e72af93a447c8b75c6b31b4e69fb91e /st.c
parentd032b6159719b2fbbbd550781b378ca79a25d3a2 (diff)
downloadst-62756fdb4945a80f4a53e6d354d5d93f51035517.tar.gz
Fix style in execsh
Diffstat (limited to 'st.c')
-rw-r--r--st.c3
1 files changed, 1 insertions, 2 deletions
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];
remember that computers suck.