X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=f967d2c0aba447bb88ae56a79258b8c0c44f64ce;hb=2e38ab7afdc56e3853751918f1b7705362bea01c;hp=43f5bc2aec13a24c5cacb37ee47610d51152fb09;hpb=eb6713acf1928ec94364627ed583252370051705;p=st.git diff --git a/st.c b/st.c index 43f5bc2..f967d2c 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); }