diff options
author | noname@inventati.org <noname@inventati.org> | 2015-04-13 16:05:49 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-04-13 17:00:08 +0200 |
commit | b94ad75e5ded18d7dcafd69070f79838e0ebf24f (patch) | |
tree | 9515c0019e4a2da239d964dfbb6d1d548ab8c2f3 | |
parent | e6dd0f825da9bf68c7642f45afd069500879f5e2 (diff) | |
download | st-b94ad75e5ded18d7dcafd69070f79838e0ebf24f.tar.gz st-b94ad75e5ded18d7dcafd69070f79838e0ebf24f.tar.bz2 st-b94ad75e5ded18d7dcafd69070f79838e0ebf24f.zip |
Remove 'titles' variable.
We do not free it until exit anyway.
-rw-r--r-- | st.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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': |