Here's the upstream patch:
Signed-off-by: Brian Rogers <brian at xyzw.org> --- src/xcb_disp.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/xcb_disp.c b/src/xcb_disp.c index d976064..584380c 100644 --- a/src/xcb_disp.c +++ b/src/xcb_disp.c @@ -94,6 +94,9 @@ int _XConnectXCB(Display *dpy, _Xconst char *display, char **fullnamep, int *scr dpy->xcb->next_xid = xcb_generate_id(dpy->xcb->connection);
dpy->xcb->event_notify = xcondition_malloc(); + if (!dpy->xcb->event_notify) + return 0; + xcondition_init(dpy->xcb->event_notify); return !xcb_connection_has_error(c); }
-- 1.6.0.4
Here's the upstream patch:
Signed-off-by: Brian Rogers <brian at xyzw.org>
---
src/xcb_disp.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/xcb_disp.c b/src/xcb_disp.c Display *dpy, _Xconst char *display, char **fullnamep, int *scr xcb->next_ xid = xcb_generate_ id(dpy- >xcb->connectio n);
index d976064..584380c 100644
--- a/src/xcb_disp.c
+++ b/src/xcb_disp.c
@@ -94,6 +94,9 @@ int _XConnectXCB(
dpy->
dpy-> xcb->event_ notify = xcondition_ malloc( ); xcb->event_ notify) init(dpy- >xcb->event_ notify) ; _has_error( c);
+ if (!dpy->
+ return 0;
+ xcondition_
return !xcb_connection
}
--
1.6.0.4