mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-27 02:09:56 +00:00
Coverity #1005: Avoid a null deref.
This commit is contained in:
parent
d01e0956a8
commit
ab1d420022
2 changed files with 8 additions and 2 deletions
|
|
@ -696,10 +696,11 @@ static void dmxConsoleComputeWidthHeight(myPrivate *priv,
|
|||
void dmxConsoleReInit(DevicePtr pDev)
|
||||
{
|
||||
GETPRIVFROMPDEV;
|
||||
Display *dpy = priv->display;
|
||||
Display *dpy;
|
||||
|
||||
if (!priv || !priv->initialized) return;
|
||||
|
||||
dpy = priv->display;
|
||||
|
||||
dmxConsoleComputeWidthHeight(priv,
|
||||
&priv->width, &priv->height,
|
||||
&priv->xScale, &priv->yScale,
|
||||
|
|
|
|||
Loading…
Reference in a new issue