summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-12 15:36:35 +0000
committernicm <nicm>2017-01-12 15:36:35 +0000
commit24cba5907b5006363ac7f83f31801153f9c23b37 (patch)
tree9d6522e1a90ed7446f30231344077f1bbde03931 /tmux.c
parentdad3090d3201bd8272cb762beea8ef3aa8ce9673 (diff)
Simplify appending to string options.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index 194a16e5..664ff0c5 100644
--- a/tmux.c
+++ b/tmux.c
@@ -295,7 +295,8 @@ main(int argc, char **argv)
global_s_options = options_create(NULL);
options_table_populate_tree(OPTIONS_TABLE_SESSION, global_s_options);
- options_set_string(global_s_options, "default-shell", "%s", getshell());
+ options_set_string(global_s_options, "default-shell", 0, "%s",
+ getshell());
global_w_options = options_create(NULL);
options_table_populate_tree(OPTIONS_TABLE_WINDOW, global_w_options);