diff options
-rw-r--r-- | st.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -4010,7 +4010,6 @@ usage(void) { | |||
4010 | 4010 | ||
4011 | int | 4011 | int |
4012 | main(int argc, char *argv[]) { | 4012 | main(int argc, char *argv[]) { |
4013 | char *titles; | ||
4014 | uint cols = 80, rows = 24; | 4013 | uint cols = 80, rows = 24; |
4015 | 4014 | ||
4016 | xw.l = xw.t = 0; | 4015 | xw.l = xw.t = 0; |
@@ -4028,10 +4027,8 @@ main(int argc, char *argv[]) { | |||
4028 | /* eat all remaining arguments */ | 4027 | /* eat all remaining arguments */ |
4029 | if(argc > 1) { | 4028 | if(argc > 1) { |
4030 | opt_cmd = &argv[1]; | 4029 | opt_cmd = &argv[1]; |
4031 | if(argv[1] != NULL && opt_title == NULL) { | 4030 | if(argv[1] != NULL && opt_title == NULL) |
4032 | titles = xstrdup(argv[1]); | 4031 | opt_title = basename(xstrdup(argv[1])); |
4033 | opt_title = basename(titles); | ||
4034 | } | ||
4035 | } | 4032 | } |
4036 | goto run; | 4033 | goto run; |
4037 | case 'f': | 4034 | case 'f': |