artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
342eb06
)
Do not try to strdup NULL, from seL4 at disroot dot org in GitHub issue
author
nicm
<nicm@openbsd.org>
Mon, 17 Jan 2022 10:40:03 +0000
(10:40 +0000)
committer
nicm
<nicm@openbsd.org>
Mon, 17 Jan 2022 10:40:03 +0000
(10:40 +0000)
3038.
usr.bin/tmux/popup.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/popup.c
b/usr.bin/tmux/popup.c
index
f1e6cba
..
07f57ab
100644
(file)
--- a/
usr.bin/tmux/popup.c
+++ b/
usr.bin/tmux/popup.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: popup.c,v 1.4
2 2021/10/25 09:38:36
nicm Exp $ */
+/* $OpenBSD: popup.c,v 1.4
3 2022/01/17 10:40:03
nicm Exp $ */
/*
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
@@
-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++;