Initialize the parent field of the newly allocate list entry. (#159330,

2004-11-24  Matthias Clasen  <mclasen@redhat.com>

	* xdgmimeparent.c (_xdg_mime_parent_read_from_file):
	Initialize the parent field of the newly allocate list
	entry.  (#159330, Alex Larsson)
This commit is contained in:
Matthias Clasen 2004-11-24 16:04:07 +00:00 committed by Matthias Clasen
parent ec69f80e23
commit 56552a9d57
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2004-11-24 Matthias Clasen <mclasen@redhat.com>
* xdgmimeparent.c (_xdg_mime_parent_read_from_file):
Initialize the parent field of the newly allocate list
entry. (#159330, Alex Larsson)
Fri Nov 19 15:10:32 2004 Manish Singh <yosh@gimp.org>
* xdgmime.c: Don't put /* within a comment.

View File

@ -163,6 +163,7 @@ _xdg_mime_parent_read_from_file (XdgParentList *list,
alloc * sizeof (XdgMimeParents));
}
list->parents[list->n_mimes].mime = strdup (line);
list->parents[list->n_mimes].parent = NULL;
entry = &(list->parents[list->n_mimes]);
list->n_mimes++;
}