aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christoph Lohmann <20h@r-36.net>2013-06-09 15:52:35 +0200
committerGravatar Christoph Lohmann <20h@r-36.net>2013-06-09 15:52:35 +0200
commit5d3318c0c734a1d65e78ed4ce103b4517be8ec3b (patch)
tree9620bb3993d4f46fe0cd526e44ef44b04287a309
parent369734c80c6e5049d704a00f436c59ecf4dafae8 (diff)
Fixing title setting with the title argument.
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 28c083a..2811876 100644
--- a/st.c
+++ b/st.c
@@ -3639,7 +3639,7 @@ main(int argc, char *argv[]) {
/* eat all remaining arguments */
if(argc > 1) {
opt_cmd = &argv[1];
- if(argv[1] != NULL) {
+ if(argv[1] != NULL && opt_title == NULL) {
titles = strdup(argv[1]);
opt_title = basename(titles);
}