mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 10:48:29 +02:00
glamor: avoid null dereference in glamor_dash_setup()
Reported in #1817: xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:152:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> (cherry picked from commitc6522229b8) (cherry picked from commit84dccbc45a) Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2151>
This commit is contained in:
parent
0ed9e8a246
commit
1ea635ce0b
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ glamor_dash_setup(DrawablePtr drawable, GCPtr gc)
|
|||
dash_pixmap = glamor_get_dash_pixmap(gc);
|
||||
dash_priv = glamor_get_pixmap_private(dash_pixmap);
|
||||
|
||||
if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(dash_priv))
|
||||
if (!dash_priv || !GLAMOR_PIXMAP_PRIV_HAS_FBO(dash_priv))
|
||||
goto bail;
|
||||
|
||||
glamor_make_current(glamor_priv);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue