diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-09 19:40:37 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-09 19:40:37 +0200 |
commit | ab40392d08babcc02653a5a33352132ea9f1988f (patch) | |
tree | 14b3d5defce72a81e176029c2e5b8c1becd2131e | |
parent | fa952e19019f4c5a693d5f0e1fa9ef182d5527e9 (diff) | |
download | st-ab40392d08babcc02653a5a33352132ea9f1988f.tar.gz st-ab40392d08babcc02653a5a33352132ea9f1988f.tar.bz2 |
Well, I was confused. Damn state exams. Instead of discussing this shit I
should really learn opthalmology instead. :O
-rw-r--r-- | st.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); } |