Commit ab1d4200 authored by Adam Jackson's avatar Adam Jackson 🎧

Coverity #1005: Avoid a null deref.

parent d01e0956
2006-04-14 Adam Jackson <ajax@freedesktop.org>
* hw/dmx/input/dmxconsole.c:
Coverity #1005: Avoid a null deref.
2006-04-14 Adam Jackson <ajax@freedesktop.org>
* hw/dmx/input/dmxinputinit.c:
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment