commit - fa952e19019f4c5a693d5f0e1fa9ef182d5527e9
commit + ab40392d08babcc02653a5a33352132ea9f1988f
blob - 43f5bc2aec13a24c5cacb37ee47610d51152fb09
blob + f967d2c0aba447bb88ae56a79258b8c0c44f64ce
--- st.c
+++ st.c
char **args;
char *envshell = getenv("SHELL");
- if (envshell == NULL)
- envshell ="/bin/sh";
-
unsetenv("COLUMNS");
unsetenv("LINES");
unsetenv("TERMCAP");
DEFAULT(envshell, SHELL);
putenv("TERM="TNAME);
- args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
+ args = opt_cmd ? opt_cmd : (char *[]){envshell, "-i", NULL};
execvp(args[0], args);
exit(EXIT_FAILURE);
}