mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-14 18:03:11 +02:00
giomodule: Add a NULL guard to extension_point_get_extension_by_name
... otherwise a NULL input will lead to a crash in strcmp. https://bugzilla.gnome.org/show_bug.cgi?id=727964
This commit is contained in:
parent
2b178c762f
commit
0e44b29340
@ -1253,6 +1253,8 @@ g_io_extension_point_get_extension_by_name (GIOExtensionPoint *extension_point,
|
||||
{
|
||||
GList *l;
|
||||
|
||||
g_return_val_if_fail (name != NULL, NULL);
|
||||
|
||||
lazy_load_modules (extension_point);
|
||||
for (l = extension_point->extensions; l != NULL; l = l->next)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user