mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
tests: Make sure we return 0 only on error
This commit is contained in:
parent
d72558d3ca
commit
b4222db71d
@ -350,13 +350,13 @@ init_uinput (void)
|
||||
goto error;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 1;
|
||||
|
||||
error:
|
||||
if (fd != -1)
|
||||
close (fd);
|
||||
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* defined CLUTTER_WINDOWING_X11 && OS_LINUX && HAVE_XINPUT_2_2 */
|
||||
|
Loading…
Reference in New Issue
Block a user