summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-06-27 13:13:54 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-06-27 13:14:46 +1000
commitec2c4ead497133ef20d5ef5a9b481b38e1e0f7a2 (patch)
treec8406b4a6b2ad373379f4afd844029ad803f8d98 /src
parent9385ae905aca9e679e698f0491e0bf7e30a35092 (diff)
Assign local->private after allocating.
It is detrimental to the user experience when the driver tries to derefernce null pointers. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/acecad.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/acecad.c b/src/acecad.c
index ad6d793..604fe91 100644
--- a/src/acecad.c
+++ b/src/acecad.c
@@ -343,6 +343,7 @@ AceCadPreInit(InputDriverPtr drv, InputInfoPtr local, int flags)
return BadAlloc;
memset(priv, 0, sizeof(AceCadPrivateRec));
+ local->private = priv;
local->device_control = DeviceControl;