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:
@@ -157,7 +157,7 @@ setup_uinput (OrientationData *data)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
data->uinput = fd;
|
data->uinput = g_steal_fd (&fd);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user