diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-27 13:13:54 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-27 13:14:46 +1000 |
commit | ec2c4ead497133ef20d5ef5a9b481b38e1e0f7a2 (patch) | |
tree | c8406b4a6b2ad373379f4afd844029ad803f8d98 /src | |
parent | 9385ae905aca9e679e698f0491e0bf7e30a35092 (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.c | 1 |
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; |