[rhythmbox] audiocd: initialize our parser context correctly
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] audiocd: initialize our parser context correctly
- Date: Sat, 9 Mar 2013 22:11:40 +0000 (UTC)
commit 4fcc65bb642a4fba769ca36ee47c2547bf9a6ef5
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Mar 10 08:07:47 2013 +1000
audiocd: initialize our parser context correctly
We probably shouldn't crash if the first tag we encounter isn't
interesting, so set the item field to NULL rather than leaving it
uninitialized.
https://bugzilla.gnome.org/show_bug.cgi?id=688638
plugins/audiocd/rb-musicbrainz-lookup.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/audiocd/rb-musicbrainz-lookup.c b/plugins/audiocd/rb-musicbrainz-lookup.c
index 9bac942..d35023d 100644
--- a/plugins/audiocd/rb-musicbrainz-lookup.c
+++ b/plugins/audiocd/rb-musicbrainz-lookup.c
@@ -361,6 +361,7 @@ rb_musicbrainz_data_parse (const char *data, gssize len, GError **error)
ctx.text.str = NULL;
ctx.text.len = 0;
ctx.text.allocated_len = 0;
+ ctx.item = NULL;
g_queue_init (&ctx.path);
pctx = g_markup_parse_context_new (&parser, 0, &ctx, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]