[hackers] [st] Well, I was confused. Damn state exams. Instead of discussing this shit I || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Tue, 9 Oct 2012 19:43:20 +0200 (CEST)

changeset: 365:ba208156a8af
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Tue Oct 09 19:40:37 2012 +0200
files: st.c
description:
Well, I was confused. Damn state exams. Instead of discussing this shit I
should really learn opthalmology instead. :O


diff -r 4740aa5344f5 -r ba208156a8af st.c
--- a/st.c Tue Oct 09 19:33:26 2012 +0200
+++ b/st.c Tue Oct 09 19:40:37 2012 +0200
_AT_@ -865,9 +865,6 @@
         char **args;
         char *envshell = getenv("SHELL");
 
- if (envshell == NULL)
- envshell ="/bin/sh";
-
         unsetenv("COLUMNS");
         unsetenv("LINES");
         unsetenv("TERMCAP");
_AT_@ -881,7 +878,7 @@
 
         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);
 }
Received on Tue Oct 09 2012 - 19:43:20 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 09 2012 - 19:48:12 CEST