[glib: 5/11] Silence an uninitialize variable warning
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/11] Silence an uninitialize variable warning
- Date: Mon, 27 Sep 2021 11:50:49 +0000 (UTC)
commit e7822bd3033453ef789de454a5a70e38d77c8c12
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 file changed, 1 insertion(+)
---
diff --git a/gio/xdgmime/xdgmimeparent.c b/gio/xdgmime/xdgmimeparent.c
index 27d910b1b..81573f708 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]