Silence an uninitialize variable warning
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 Jun 2011 13:44:45 +0000 (09:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Jun 2011 13:44:45 +0000 (09:44 -0400)
gio/xdgmime/xdgmimeparent.c

index 577b49f..6c4cde0 100644 (file)
@@ -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);