aboutsummaryrefslogtreecommitdiff
path: root/options-table.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 /options-table.c
parentdad3090d3201bd8272cb762beea8ef3aa8ce9673 (diff)
downloadrtmux-24cba5907b5006363ac7f83f31801153f9c23b37.tar.gz
rtmux-24cba5907b5006363ac7f83f31801153f9c23b37.tar.bz2
rtmux-24cba5907b5006363ac7f83f31801153f9c23b37.zip
Simplify appending to string options.
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/options-table.c b/options-table.c
index a6bdda6f..92441ebe 100644
--- a/options-table.c
+++ b/options-table.c
@@ -915,10 +915,11 @@ options_table_populate_tree(enum options_table_scope scope, struct options *oo)
continue;
switch (oe->type) {
case OPTIONS_TABLE_STRING:
- options_set_string(oo, oe->name, "%s", oe->default_str);
+ options_set_string(oo, oe->name, 0, "%s",
+ oe->default_str);
break;
case OPTIONS_TABLE_STYLE:
- options_set_style(oo, oe->name, oe->default_str, 0);
+ options_set_style(oo, oe->name, 0, oe->default_str);
break;
default:
options_set_number(oo, oe->name, oe->default_num);