[hackers] [st] Remove 'titles' variable. || noname_AT_inventati.org
commit b94ad75e5ded18d7dcafd69070f79838e0ebf24f
Author: noname_AT_inventati.org <noname_AT_inventati.org>
Date: Mon Apr 13 16:05:49 2015 +0200
Remove 'titles' variable.
We do not free it until exit anyway.
diff --git a/st.c b/st.c
index 4f5cf9e..4650990 100644
--- a/st.c
+++ b/st.c
_AT_@ -4010,7 +4010,6 @@ usage(void) {
int
main(int argc, char *argv[]) {
- char *titles;
uint cols = 80, rows = 24;
xw.l = xw.t = 0;
_AT_@ -4028,10 +4027,8 @@ main(int argc, char *argv[]) {
/* eat all remaining arguments */
if(argc > 1) {
opt_cmd = &argv[1];
- if(argv[1] != NULL && opt_title == NULL) {
- titles = xstrdup(argv[1]);
- opt_title = basename(titles);
- }
+ if(argv[1] != NULL && opt_title == NULL)
+ opt_title = basename(xstrdup(argv[1]));
}
goto run;
case 'f':
Received on Tue Apr 14 2015 - 09:56:42 CEST
This archive was generated by hypermail 2.3.0
: Tue Apr 14 2015 - 10:00:31 CEST