diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-11-24 16:04:07 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-11-24 16:04:07 +0000 |
commit | 56552a9d57397a8b519ef86eb29e8c9ca4ce4416 (patch) | |
tree | 51bd2b028d9908592ffb78bbdc9f199eb6de5a4b /gtk/xdgmime | |
parent | ec69f80e23f31d3da9f5e648ea57d5f2d9855dfe (diff) | |
download | gtk+-56552a9d57397a8b519ef86eb29e8c9ca4ce4416.tar.gz |
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)
Diffstat (limited to 'gtk/xdgmime')
-rw-r--r-- | gtk/xdgmime/ChangeLog | 6 | ||||
-rw-r--r-- | gtk/xdgmime/xdgmimeparent.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gtk/xdgmime/ChangeLog b/gtk/xdgmime/ChangeLog index 64abfddbad..3045b7278a 100644 --- a/gtk/xdgmime/ChangeLog +++ b/gtk/xdgmime/ChangeLog @@ -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. diff --git a/gtk/xdgmime/xdgmimeparent.c b/gtk/xdgmime/xdgmimeparent.c index 17bf15dc5b..d6aff20217 100644 --- a/gtk/xdgmime/xdgmimeparent.c +++ b/gtk/xdgmime/xdgmimeparent.c @@ -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++; } |