summaryrefslogtreecommitdiffstats
path: root/popup.c
diff options
context:
space:
mode:
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 ed6a6bb9..bebc7cc6 100644
--- a/popup.c
+++ b/popup.c
@@ -668,7 +668,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++;