glib r6981 - trunk/gio
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6981 - trunk/gio
- Date: Tue, 10 Jun 2008 10:51:29 +0000 (UTC)
Author: mitch
Date: Tue Jun 10 10:51:29 2008
New Revision: 6981
URL: http://svn.gnome.org/viewvc/glib?rev=6981&view=rev
Log:
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.
Modified:
trunk/gio/ChangeLog
trunk/gio/gcontenttype.c
Modified: trunk/gio/gcontenttype.c
==============================================================================
--- trunk/gio/gcontenttype.c (original)
+++ trunk/gio/gcontenttype.c Tue Jun 10 10:51:29 2008
@@ -676,7 +676,7 @@
char *mimetype_icon, *generic_mimetype_icon, *q;
char *xdg_mimetype_icon, *legacy_mimetype_icon;
char *icon_names[4];
- int n;
+ int n = 0;
const char *p;
GIcon *themed_icon;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]