[glib] Silence an uninitialize variable warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Silence an uninitialize variable warning
- Date: Tue, 14 Jun 2011 15:41:29 +0000 (UTC)
commit 4c63303f9fa1ea2737c6890a5e51188eaa534836
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 09:44:45 2011 -0400
Silence an uninitialize variable warning
gio/xdgmime/xdgmimeparent.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/xdgmime/xdgmimeparent.c b/gio/xdgmime/xdgmimeparent.c
index 577b49f..6c4cde0 100644
--- a/gio/xdgmime/xdgmimeparent.c
+++ b/gio/xdgmime/xdgmimeparent.c
@@ -111,6 +111,7 @@ _xdg_mime_parent_list_lookup (XdgParentList *list,
{
key.mime = (char *)mime;
key.parents = NULL;
+ key.n_parents = 0;
entry = bsearch (&key, list->parents, list->n_mimes,
sizeof (XdgMimeParents), &parent_entry_cmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]