[easytag] Avoid a crash when reading FLAC files with no tags



commit e859c35a810d0688fdba434952611f8671974eda
Author: David King <amigadave amigadave com>
Date:   Fri Feb 13 22:13:27 2015 +0000

    Avoid a crash when reading FLAC files with no tags
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744497

 src/tags/flac_tag.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/tags/flac_tag.c b/src/tags/flac_tag.c
index 632d515..494c4d1 100644
--- a/src/tags/flac_tag.c
+++ b/src/tags/flac_tag.c
@@ -695,9 +695,7 @@ flac_tag_read_file_tag (GFile *file,
       && FileTag->encoded_by  == NULL
       && FileTag->picture     == NULL)
     {
-        gboolean rc;
-
-        rc = id3tag_read_file_tag (file, FileTag, NULL);
+        id3tag_read_file_tag (file, FileTag, NULL);
 
         // If an ID3 tag has been found (and no FLAC tag), we mark the file as
         // unsaved to rewrite a flac tag.
@@ -721,8 +719,6 @@ flac_tag_read_file_tag (GFile *file,
         {
             FileTag->saved = FALSE;
         }
-
-        return rc;
     }
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]