Coverity #1005: Avoid a null deref.
This commit is contained in:
parent
d01e0956a8
commit
ab1d420022
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2006-04-14 Adam Jackson <ajax@freedesktop.org>
|
||||||
|
|
||||||
* hw/dmx/input/dmxinputinit.c:
|
* hw/dmx/input/dmxinputinit.c:
|
||||||
|
|
|
@ -696,9 +696,10 @@ static void dmxConsoleComputeWidthHeight(myPrivate *priv,
|
||||||
void dmxConsoleReInit(DevicePtr pDev)
|
void dmxConsoleReInit(DevicePtr pDev)
|
||||||
{
|
{
|
||||||
GETPRIVFROMPDEV;
|
GETPRIVFROMPDEV;
|
||||||
Display *dpy = priv->display;
|
Display *dpy;
|
||||||
|
|
||||||
if (!priv || !priv->initialized) return;
|
if (!priv || !priv->initialized) return;
|
||||||
|
dpy = priv->display;
|
||||||
|
|
||||||
dmxConsoleComputeWidthHeight(priv,
|
dmxConsoleComputeWidthHeight(priv,
|
||||||
&priv->width, &priv->height,
|
&priv->width, &priv->height,
|
||||||
|
|
Loading…
Reference in New Issue