[tracker] tracker-extract-text: Fix crash if unable to open file
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract-text: Fix crash if unable to open file
- Date: Mon, 17 Oct 2011 10:04:51 +0000 (UTC)
commit b5f944032fb31a8b275a3ad1deabc24f4c4609d7
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]