Commit 62756fd

Roberto E. Vargas Caballero <k0ga@shike2.com>
2015-07-24 01:44:34
Fix style in execsh
1 parent d032b61
Changed files (1)
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];