]> git.armaanb.net Git - st.git/commitdiff
Fix style in execsh
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Fri, 24 Jul 2015 05:44:34 +0000 (07:44 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Fri, 24 Jul 2015 05:44:34 +0000 (07:44 +0200)
st.c

diff --git a/st.c b/st.c
index 64e2cec468d9f260bc1ff043d54684d69ae0d83e..b604f0e71185d9896ec7f97a00c745a62f532a24 100644 (file)
--- 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];