fake-input-accelerometer: Fix test program not working

We forgot to "steal" the pointer before returning from the function
successfully, so the file descriptor was closed. Oops.

Fixes: cc11240 ("fake-input-accelerometer: Simplify error paths")
This commit is contained in:
Bastien Nocera
2022-07-13 17:09:10 +02:00
parent 40e055b7c8
commit fbdddf0638

View File

@@ -157,7 +157,7 @@ setup_uinput (OrientationData *data)
return FALSE;
}
data->uinput = fd;
data->uinput = g_steal_fd (&fd);
return TRUE;
}