[tracker/tracker-0.12] tracker-extract-text: Fix crash if unable to open file
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12] tracker-extract-text: Fix crash if unable to open file
- Date: Thu, 20 Oct 2011 12:45:00 +0000 (UTC)
commit 54e03fdbc1556bbe0ede93404ca21550f7d2ebd2
Author: JÃrg Billeter <j bitron ch>
Date: Mon Oct 17 10:55:09 2011 +0200
tracker-extract-text: Fix crash if unable to open file
src/tracker-extract/tracker-extract-text.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-text.c b/src/tracker-extract/tracker-extract-text.c
index 17f73dd..593a052 100644
--- a/src/tracker-extract/tracker-extract-text.c
+++ b/src/tracker-extract/tracker-extract-text.c
@@ -47,7 +47,6 @@ static gchar *
get_file_content (GFile *file,
gsize n_bytes)
{
- GError *error = NULL;
gchar *text, *uri, *path;
int fd;
@@ -69,8 +68,7 @@ get_file_content (GFile *file,
if (fd == -1) {
g_message ("Could not open file '%s': %s",
uri,
- error->message);
- g_error_free (error);
+ g_strerror (errno));
g_free (uri);
g_free (path);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]