aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann2012-10-09 19:40:37 +0200
committerChristoph Lohmann2012-10-09 19:40:37 +0200
commitb4c50bea37e587ba13f19417e961027535eff9ac (patch)
tree0f5b82b9deb34d7b30120d76846ce08867c08273 /st.c
parent0c12856aeec62a83e4c014eb3e745ffbdc589f3b (diff)
downloadaur-b4c50bea37e587ba13f19417e961027535eff9ac.tar.gz
Well, I was confused. Damn state exams. Instead of discussing this shit I
should really learn opthalmology instead. :O
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/st.c b/st.c
index 43f5bc2aec13..f967d2c0aba4 100644
--- a/st.c
+++ b/st.c
@@ -865,9 +865,6 @@ execsh(void) {
char **args;
char *envshell = getenv("SHELL");
- if (envshell == NULL)
- envshell ="/bin/sh";
-
unsetenv("COLUMNS");
unsetenv("LINES");
unsetenv("TERMCAP");
@@ -881,7 +878,7 @@ execsh(void) {
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);
}