mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-06 19:13:19 +01:00
W32: fix uninitialized var in g_app_info_get_all_for_type
Compare with the handler->app, not with the app var which is not initialized yet https://bugzilla.gnome.org/show_bug.cgi?id=759408
This commit is contained in:
@@ -4634,7 +4634,7 @@ g_app_info_get_all_for_type (const char *content_type)
|
|||||||
while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &handler))
|
while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &handler))
|
||||||
{
|
{
|
||||||
if (handler->app &&
|
if (handler->app &&
|
||||||
(ext->chosen_handler == NULL || ext->chosen_handler->app != app))
|
(ext->chosen_handler == NULL || ext->chosen_handler->app != handler->app))
|
||||||
result = g_list_prepend (result,
|
result = g_list_prepend (result,
|
||||||
g_win32_app_info_new_from_app (handler->app,
|
g_win32_app_info_new_from_app (handler->app,
|
||||||
handler));
|
handler));
|
||||||
|
|||||||
Reference in New Issue
Block a user