aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
1329 die("who are you?\n"); 1329 die("who are you?\n");
1330 } 1330 }
1331 1331
1332 if (!(sh = getenv("SHELL"))) { 1332 if ((sh = getenv("SHELL")) == NULL)
1333 sh = (pw->pw_shell[0]) ? pw->pw_shell : shell; 1333 sh = (pw->pw_shell[0]) ? pw->pw_shell : shell;
1334 }
1335 1334
1336 if (opt_cmd) 1335 if (opt_cmd)
1337 prog = opt_cmd[0]; 1336 prog = opt_cmd[0];