mirror of
https://github.com/tmux/tmux.git
synced 2024-12-26 03:19:16 +00:00
Do not try to strdup NULL, from seL4 at disroot dot org in GitHub issue
3038.
This commit is contained in:
parent
b2b94dcba7
commit
a6b361e775
3
popup.c
3
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 = xcalloc(1, sizeof *pd);
|
||||||
pd->item = item;
|
pd->item = item;
|
||||||
pd->flags = flags;
|
pd->flags = flags;
|
||||||
pd->title = xstrdup(title);
|
if (title != NULL)
|
||||||
|
pd->title = xstrdup(title);
|
||||||
|
|
||||||
pd->c = c;
|
pd->c = c;
|
||||||
pd->c->references++;
|
pd->c->references++;
|
||||||
|
Loading…
Reference in New Issue
Block a user