mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 19:50:11 +01:00
Coverity #1005: Avoid a null deref.
This commit is contained in:
parent
af9d7591ba
commit
d017ca616c
2 changed files with 8 additions and 2 deletions
|
|
@ -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>
|
||||
|
||||
* 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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue