We do not free it until exit anyway.
int
main(int argc, char *argv[]) {
int
main(int argc, char *argv[]) {
uint cols = 80, rows = 24;
xw.l = xw.t = 0;
uint cols = 80, rows = 24;
xw.l = xw.t = 0;
/* eat all remaining arguments */
if(argc > 1) {
opt_cmd = &argv[1];
/* 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]));