tests: Make sure we return 0 only on error

This commit is contained in:
Tomeu Vizoso 2012-06-14 11:17:05 +02:00
parent d72558d3ca
commit b4222db71d

View File

@ -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 */