diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-22 14:56:28 +0000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-23 09:11:13 +1000 |
commit | dcb63deb1b6337781943a7bea5bb2b04c6d76b55 (patch) | |
tree | b96569486ec61ffad0767cfe454d6b19d8251589 | |
parent | 23d85c54421ebdd12460566918fcb7f309d2ee30 (diff) |
inputthread: Initialise inputThreadInfo->changed before use
==8734== Thread 2 InputThread:
==8734== Conditional jump or move depends on uninitialised value(s)
==8734== at 0x2FDB05: InputThreadDoWork (inputthread.c:333)
==8734== by 0x6924423: start_thread (pthread_create.c:333)
==8734== by 0x6C229BE: clone (clone.S:105)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | os/inputthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/inputthread.c b/os/inputthread.c index 8e7f2edb9..4400fba3f 100644 --- a/os/inputthread.c +++ b/os/inputthread.c @@ -403,6 +403,8 @@ InputThreadPreInit(void) if (!inputThreadInfo) FatalError("input-thread: could not allocate memory"); + inputThreadInfo->changed = FALSE; + inputThreadInfo->thread = 0; xorg_list_init(&inputThreadInfo->devs); inputThreadInfo->fds = ospoll_create(); |