mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-10 17:31:59 +02:00
check if display exists before dereferencing it
Bug: 43054 Bug: 51500 Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
@@ -4515,7 +4515,7 @@ char *AddWindowFlags(char *buf, int len, Window *p)
|
||||
*s++ = '-';
|
||||
if (p->w_layer.l_cvlist && p->w_layer.l_cvlist->c_lnext)
|
||||
*s++ = '&';
|
||||
if (p->w_monitor == MON_DONE && (ACLBYTE(p->w_mon_notify, D_user->u_id) & ACLBIT(D_user->u_id))
|
||||
if (display && p->w_monitor == MON_DONE && (ACLBYTE(p->w_mon_notify, D_user->u_id) & ACLBIT(D_user->u_id))
|
||||
)
|
||||
*s++ = '@';
|
||||
if (p->w_bell == BELL_DONE)
|
||||
|
||||
Reference in New Issue
Block a user