mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Initialize unthemed_icon to NULL to avoid accessing uninitialized memory
* gtk/gtkicontheme.c (choose_icon): Initialize unthemed_icon to NULL to avoid accessing uninitialized memory when gtk_icon_theme_choose_icon() is called with an empty names list. svn path=/trunk/; revision=18018
This commit is contained in:
parent
9daa2554b5
commit
5b12bfdad2
@ -1,3 +1,9 @@
|
||||
2007-06-03 Torsten Schoenfeld <kaffeetisch@gmx.de>
|
||||
|
||||
* gtk/gtkicontheme.c (choose_icon): Initialize unthemed_icon to NULL
|
||||
to avoid accessing uninitialized memory when
|
||||
gtk_icon_theme_choose_icon() is called with an empty names list.
|
||||
|
||||
2007-06-03 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkevents-quartz.c: (create_crossing_event): Set the key
|
||||
|
@ -1234,7 +1234,7 @@ choose_icon (GtkIconTheme *icon_theme,
|
||||
GtkIconThemePrivate *priv;
|
||||
GList *l;
|
||||
GtkIconInfo *icon_info = NULL;
|
||||
UnthemedIcon *unthemed_icon;
|
||||
UnthemedIcon *unthemed_icon = NULL;
|
||||
gboolean allow_svg;
|
||||
gboolean use_builtin;
|
||||
gint i;
|
||||
|
Loading…
Reference in New Issue
Block a user