aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-11-28 22:01:24 +0000
committerThomas Adam <thomas@xteddy.org>2019-11-28 22:01:24 +0000
commit34084fe666121d2c64e714b5210c106d85f93f44 (patch)
tree11dd2f2dd48d36fc0e4e28d4ee3824de7e2b75d6 /format.c
parent3bb11ec4843e1cd942e703bb386369e42466acd8 (diff)
parentc5d74b1debc404340dd2049c708f9eb599be706e (diff)
downloadrtmux-34084fe666121d2c64e714b5210c106d85f93f44.tar.gz
rtmux-34084fe666121d2c64e714b5210c106d85f93f44.tar.bz2
rtmux-34084fe666121d2c64e714b5210c106d85f93f44.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/format.c b/format.c
index 477f65ad..ee507340 100644
--- a/format.c
+++ b/format.c
@@ -1128,11 +1128,10 @@ format_find(struct format_tree *ft, const char *key, int modifiers)
xasprintf(&found, "%lld", (long long)fe->t);
goto found;
}
- if (fe->value == NULL && fe->cb != NULL) {
+ if (fe->value == NULL && fe->cb != NULL)
fe->cb(ft, fe);
- if (fe->value == NULL)
- fe->value = xstrdup("");
- }
+ if (fe->value == NULL)
+ fe->value = xstrdup("");
found = xstrdup(fe->value);
goto found;
}