diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-14 23:09:38 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-14 23:09:38 +0000 |
commit | ab1d420022fb09d36a0d6ad948c38147c65b9adf (patch) | |
tree | 3e8aefb6056698a9887127731403a72c94266101 /hw | |
parent | d01e0956a8903fb41e8a34c78973b9b2860b6446 (diff) |
Coverity #1005: Avoid a null deref.
Diffstat (limited to 'hw')
-rw-r--r-- | hw/dmx/input/dmxconsole.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/dmx/input/dmxconsole.c b/hw/dmx/input/dmxconsole.c index 7a313aadd..835909e6c 100644 --- a/hw/dmx/input/dmxconsole.c +++ b/hw/dmx/input/dmxconsole.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, |