summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-01-12 15:36:36 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-01-12 15:36:36 +0000
commit4b97d16f4355cfe6ec7e41d5c0f4c90270683016 (patch)
tree0347104a6c0ea69a28f3d89d5a99203fe9a3ddb6 /usr.bin/tmux/tmux.c
parenta630d9b556b7c89a473722e1b53b7c87fe9c843d (diff)
Simplify appending to string options.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index eb0091045ed..5fd1225a999 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.173 2016/12/09 21:39:27 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.174 2017/01/12 15:36:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);