[easytag] Fix crash when failing to read FLAC headers
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix crash when failing to read FLAC headers
- Date: Mon, 15 Jun 2015 04:52:27 +0000 (UTC)
commit 2330fa34ec0c6163aa8f47f5d75a36589234715b
Author: David King <amigadave amigadave com>
Date: Mon Jun 15 05:51:25 2015 +0100
Fix crash when failing to read FLAC headers
Ensure that the GError passed to g_file_read() has been initialized.
https://bugzilla.redhat.com/show_bug.cgi?id=1231502
src/tags/flac_header.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tags/flac_header.c b/src/tags/flac_header.c
index f2c1109..fee66b8 100644
--- a/src/tags/flac_header.c
+++ b/src/tags/flac_header.c
@@ -60,7 +60,7 @@ et_flac_header_read_file_info (GFile *file,
return FALSE;
}
- istream = g_file_read (file, NULL, &state.error);
+ istream = g_file_read (file, NULL, error);
if (istream == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]