Commit eb6713a

Christoph Lohmann <20h@r-36.net>
2012-10-09 13:33:26
If there is really someone without SHELL set, help him/her.
1 parent 9e81394
Changed files (1)
st.c
@@ -865,6 +865,9 @@ execsh(void) {
 	char **args;
 	char *envshell = getenv("SHELL");
 
+	if (envshell == NULL)
+		envshell ="/bin/sh";
+
 	unsetenv("COLUMNS");
 	unsetenv("LINES");
 	unsetenv("TERMCAP");