mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
xwm_get_render_format: check NULL return value
This commit is contained in:
parent
41649a1f9a
commit
a6fb4b007b
1 changed files with 4 additions and 0 deletions
|
|
@ -1254,6 +1254,10 @@ static void xwm_get_render_format(struct wlr_xwm *xwm) {
|
||||||
xcb_render_query_pict_formats(xwm->xcb_conn);
|
xcb_render_query_pict_formats(xwm->xcb_conn);
|
||||||
xcb_render_query_pict_formats_reply_t *reply =
|
xcb_render_query_pict_formats_reply_t *reply =
|
||||||
xcb_render_query_pict_formats_reply(xwm->xcb_conn, cookie, NULL);
|
xcb_render_query_pict_formats_reply(xwm->xcb_conn, cookie, NULL);
|
||||||
|
if (!reply) {
|
||||||
|
wlr_log(L_ERROR, "Did not get any reply from xcb_rrender_query_pict_formats");
|
||||||
|
return;
|
||||||
|
}
|
||||||
xcb_render_pictforminfo_iterator_t iter =
|
xcb_render_pictforminfo_iterator_t iter =
|
||||||
xcb_render_query_pict_formats_formats_iterator(reply);
|
xcb_render_query_pict_formats_formats_iterator(reply);
|
||||||
xcb_render_pictforminfo_t *format = NULL;
|
xcb_render_pictforminfo_t *format = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue