summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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++;