kms: Add a missing g_set_error on error
So the GError is not left NULL and then dereferenced. Fix provided by Jonas Ådahl <jadahl@gmail.com> Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1878 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1925>
This commit is contained in:
parent
747dbe2a69
commit
d996319cf9
@ -312,6 +312,9 @@ meta_create_kms_impl_device (MetaKmsDevice *device,
|
||||
}
|
||||
}
|
||||
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
"No suitable mode setting backend found");
|
||||
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user