tFix style in execsh - st - [fork] customized build of st, the simple terminal | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 62756fdb4945a80f4a53e6d354d5d93f51035517 | |
parent d032b6159719b2fbbbd550781b378ca79a25d3a2 | |
Author: Roberto E. Vargas Caballero <[email protected]> | |
Date: Fri, 24 Jul 2015 07:44:34 +0200 | |
Fix style in execsh | |
Diffstat: | |
M st.c | 3 +-- | |
1 file changed, 1 insertion(+), 2 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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]; |