Do not try to strdup NULL, from seL4 at disroot dot org in GitHub issue

3038.
This commit is contained in:
nicm 2022-01-17 10:40:03 +00:00
parent b2b94dcba7
commit a6b361e775

View File

@ -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++;