mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
fix SEGV by not using uninitialized memory as array index.
2008-06-10 Michael Natterer <mitch@imendio.com> * gcontenttype.c (g_content_type_get_icon): fix SEGV by not using uninitialized memory as array index. svn path=/trunk/; revision=6981
This commit is contained in:
parent
8b5ad297da
commit
b15a223a8a
@ -1,3 +1,8 @@
|
|||||||
|
2008-06-10 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gcontenttype.c (g_content_type_get_icon): fix SEGV by not using
|
||||||
|
uninitialized memory as array index.
|
||||||
|
|
||||||
2008-06-10 Tor Lillqvist <tml@novell.com>
|
2008-06-10 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* gcontenttype.c (g_content_type_can_be_executable)
|
* gcontenttype.c (g_content_type_can_be_executable)
|
||||||
|
@ -676,7 +676,7 @@ g_content_type_get_icon (const char *type)
|
|||||||
char *mimetype_icon, *generic_mimetype_icon, *q;
|
char *mimetype_icon, *generic_mimetype_icon, *q;
|
||||||
char *xdg_mimetype_icon, *legacy_mimetype_icon;
|
char *xdg_mimetype_icon, *legacy_mimetype_icon;
|
||||||
char *icon_names[4];
|
char *icon_names[4];
|
||||||
int n;
|
int n = 0;
|
||||||
const char *p;
|
const char *p;
|
||||||
GIcon *themed_icon;
|
GIcon *themed_icon;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user