[evince] comics: Propagate an error if the mime-type cannot be read
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] comics: Propagate an error if the mime-type cannot be read
- Date: Sat, 22 Jul 2017 13:03:59 +0000 (UTC)
commit 14c54a7187e5cbf710ee890a2ed78083f7d048d1
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jul 18 11:52:56 2017 +0200
comics: Propagate an error if the mime-type cannot be read
And avoid leaking an unused error.
https://bugzilla.gnome.org/show_bug.cgi?id=784963
backend/comics/comics-document.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c
index 4ead1dd..b3e028f 100644
--- a/backend/comics/comics-document.c
+++ b/backend/comics/comics-document.c
@@ -219,7 +219,7 @@ comics_document_load (EvDocument *document,
comics_document->archive_uri = g_strdup (uri);
- mime_type = ev_file_get_mime_type (uri, FALSE, &err);
+ mime_type = ev_file_get_mime_type (uri, FALSE, error);
if (mime_type == NULL)
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]