Introduction
Introduction Statistics Contact Development Disclaimer Help
tRemove 'titles' variable. - st - [fork] customized build of st, the simple ter…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit b94ad75e5ded18d7dcafd69070f79838e0ebf24f
parent e6dd0f825da9bf68c7642f45afd069500879f5e2
Author: [email protected] <[email protected]>
Date: Mon, 13 Apr 2015 16:05:49 +0200
Remove 'titles' variable.
We do not free it until exit anyway.
Diffstat:
M st.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -4010,7 +4010,6 @@ usage(void) {
int
main(int argc, char *argv[]) {
- char *titles;
uint cols = 80, rows = 24;
xw.l = xw.t = 0;
t@@ -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':
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.