launcher: Fix a crash that happens when TakeDevice has an error

This commit is contained in:
Jasper St. Pierre 2014-11-26 13:28:47 -08:00
parent c408cf7aac
commit 71dab32769

View File

@ -130,8 +130,8 @@ take_device (Login1Session *session_proxy,
{
gboolean ret = FALSE;
GVariant *fd_variant = NULL;
GUnixFDList *fd_list = NULL;
int fd = -1;
GUnixFDList *fd_list;
if (!login1_session_call_take_device_sync (session_proxy,
dev_major,