mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
Initialize the synaptics cookie again. Not sure but maybe this fixes a crash on startup (if there is an interrupt before the ring buffer is created...).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
871620540d
commit
a16bab72a7
@ -332,6 +332,8 @@ synaptics_open(const char *name, uint32 flags, void **_cookie)
|
||||
cookie = (synaptics_cookie*)malloc(sizeof(synaptics_cookie));
|
||||
if (cookie == NULL)
|
||||
goto err1;
|
||||
memset(cookie, 0, sizeof(*cookie));
|
||||
|
||||
cookie->movementMaker.Init();
|
||||
*_cookie = cookie;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user