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>
This commit is contained in:
parent
23d85c5442
commit
dcb63deb1b
|
@ -403,6 +403,8 @@ InputThreadPreInit(void)
|
||||||
if (!inputThreadInfo)
|
if (!inputThreadInfo)
|
||||||
FatalError("input-thread: could not allocate memory");
|
FatalError("input-thread: could not allocate memory");
|
||||||
|
|
||||||
|
inputThreadInfo->changed = FALSE;
|
||||||
|
|
||||||
inputThreadInfo->thread = 0;
|
inputThreadInfo->thread = 0;
|
||||||
xorg_list_init(&inputThreadInfo->devs);
|
xorg_list_init(&inputThreadInfo->devs);
|
||||||
inputThreadInfo->fds = ospoll_create();
|
inputThreadInfo->fds = ospoll_create();
|
||||||
|
|
Loading…
Reference in New Issue