summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-02-27 08:01:20 +0000
committerThomas Adam <thomas@xteddy.org>2021-02-27 08:01:20 +0000
commitba9f89c44e3294284493178fb34f864aafb399cd (patch)
tree2c0cbc20c9bcd63d93e0be1c4d080ceebd207943 /format.c
parenta7d4703bfe822f58dd14ee26cb9137d23f967a8c (diff)
parent40ad11b2b5155dbccf15881500f2b4f8b16d509d (diff)
Merge branch 'obsd-master' into master
Diffstat (limited to 'format.c')
-rw-r--r--format.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/format.c b/format.c
index fb3fd332..9ecef751 100644
--- a/format.c
+++ b/format.c
@@ -1368,8 +1368,11 @@ format_cb_client_termname(struct format_tree *ft)
static void *
format_cb_client_termtype(struct format_tree *ft)
{
- if (ft->c != NULL)
+ if (ft->c != NULL) {
+ if (ft->c->term_type == NULL)
+ return (xstrdup(""));
return (xstrdup(ft->c->term_type));
+ }
return (NULL);
}