[easytag/easytag-2-2] Fix crash when saving FLAC tags
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/easytag-2-2] Fix crash when saving FLAC tags
- Date: Wed, 7 Jan 2015 09:35:45 +0000 (UTC)
commit 9244e1380bb63c00fdd205cd4d5e3c0fa0ccf660
Author: David King <amigadave amigadave com>
Date: Wed Jan 7 09:16:46 2015 +0000
Fix crash when saving FLAC tags
https://bugzilla.gnome.org/show_bug.cgi?id=742350
src/id3_tag.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/id3_tag.c b/src/id3_tag.c
index 6984de9..8099b8a 100644
--- a/src/id3_tag.c
+++ b/src/id3_tag.c
@@ -95,9 +95,15 @@ gchar *
et_id3tag_get_tpos_from_file_tag (File_Tag *FileTag)
{
GString *gstring;
- gchar *p;
+ const gchar *p;
gstring = g_string_new ("");
+
+ if (!FileTag->disc_number)
+ {
+ return g_string_free (gstring, FALSE);
+ }
+
p = FileTag->disc_number;
while (*p)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]