[glib/glib-2-46] W32: fix uninitialized var in g_app_info_get_all_for_type
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-46] W32: fix uninitialized var in g_app_info_get_all_for_type
- Date: Mon, 14 Dec 2015 13:33:32 +0000 (UTC)
commit 11eef0b1d965ee968cdda65e023f372dda26178a
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Dec 13 19:32:39 2015 +0100
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
gio/gwin32appinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c
index ae5a7da..b547012 100644
--- a/gio/gwin32appinfo.c
+++ b/gio/gwin32appinfo.c
@@ -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))
{
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,
g_win32_app_info_new_from_app (handler->app,
handler));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]