Fixed a segv that happened when I compiled with xinput=xfree, but had
no input devices.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Wed Nov 25 21:41:52 1998 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
|
* app/devices.c (devices_restore): Fixed a segv - now it returns
|
||||||
|
when there are no devices configured.
|
||||||
|
|
||||||
Wed Nov 25 22:12:50 CET 1998 Marc Lehmann <pcg@goof.com>
|
Wed Nov 25 22:12:50 CET 1998 Marc Lehmann <pcg@goof.com>
|
||||||
|
|
||||||
* plug-ins/script-fu/scripts/line-nova.scm,
|
* plug-ins/script-fu/scripts/line-nova.scm,
|
||||||
|
@ -235,6 +235,9 @@ devices_restore()
|
|||||||
tmp_list = tmp_list->next;
|
tmp_list = tmp_list->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device_info == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
suppress_update = TRUE;
|
suppress_update = TRUE;
|
||||||
|
|
||||||
if (device_info->is_init)
|
if (device_info->is_init)
|
||||||
|
@ -235,6 +235,9 @@ devices_restore()
|
|||||||
tmp_list = tmp_list->next;
|
tmp_list = tmp_list->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device_info == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
suppress_update = TRUE;
|
suppress_update = TRUE;
|
||||||
|
|
||||||
if (device_info->is_init)
|
if (device_info->is_init)
|
||||||
|
@ -235,6 +235,9 @@ devices_restore()
|
|||||||
tmp_list = tmp_list->next;
|
tmp_list = tmp_list->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device_info == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
suppress_update = TRUE;
|
suppress_update = TRUE;
|
||||||
|
|
||||||
if (device_info->is_init)
|
if (device_info->is_init)
|
||||||
|
@ -235,6 +235,9 @@ devices_restore()
|
|||||||
tmp_list = tmp_list->next;
|
tmp_list = tmp_list->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device_info == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
suppress_update = TRUE;
|
suppress_update = TRUE;
|
||||||
|
|
||||||
if (device_info->is_init)
|
if (device_info->is_init)
|
||||||
|
@ -235,6 +235,9 @@ devices_restore()
|
|||||||
tmp_list = tmp_list->next;
|
tmp_list = tmp_list->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (device_info == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
suppress_update = TRUE;
|
suppress_update = TRUE;
|
||||||
|
|
||||||
if (device_info->is_init)
|
if (device_info->is_init)
|
||||||
|
Reference in New Issue
Block a user