mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-06 07:58:05 +02:00
main: Add early check to get_driver_for_profile() function
This commit is contained in:
parent
ccebd407c7
commit
8ae0e14830
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ get_driver_for_profile (PpdApp *data,
|
|||
{
|
||||
guint i;
|
||||
|
||||
g_return_val_if_fail (ppd_profile_has_single_flag (profile), NULL);
|
||||
|
||||
for (i = 0; i < data->drivers->len; i++) {
|
||||
PpdDriver *driver = g_ptr_array_index (data->drivers, i);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue