summaryrefslogtreecommitdiffstats
path: root/popup.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-01-17 12:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2022-01-17 12:01:10 +0000
commit6c0397f49769666c836a312c292e9c67adc41058 (patch)
tree5f264998eb15bf445efca6968931b16ee40aaca7 /popup.c
parent28b6237c623f507188a782a016563c78dd0ffb85 (diff)
parenta6b361e775e0bf6301284391e75dd9af7af340da (diff)
Merge branch 'obsd-master' into master
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/popup.c b/popup.c
index 0418ea7e..9eb663eb 100644
--- a/popup.c
+++ b/popup.c
@@ -667,7 +667,8 @@ popup_display(int flags, enum box_lines lines, struct cmdq_item *item, u_int px,
pd = xcalloc(1, sizeof *pd);
pd->item = item;
pd->flags = flags;
- pd->title = xstrdup(title);
+ if (title != NULL)
+ pd->title = xstrdup(title);
pd->c = c;
pd->c->references++;