pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6dd0f8
)
Remove 'titles' variable.
author
noname@inventati.org
<noname@inventati.org>
Mon, 13 Apr 2015 14:05:49 +0000
(16:05 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Mon, 13 Apr 2015 15:00:08 +0000
(17:00 +0200)
We do not free it until exit anyway.
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
4f5cf9e
..
4650990
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-4010,7
+4010,6
@@
usage(void) {
int
main(int argc, char *argv[]) {
- char *titles;
uint cols = 80, rows = 24;
xw.l = xw.t = 0;
@@
-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':