Commit b5f94403 authored by Jürg Billeter's avatar Jürg Billeter

tracker-extract-text: Fix crash if unable to open file

parent 430aa1e2
......@@ -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",
g_error_free (error);
g_strerror (errno));
g_free (uri);
g_free (path);
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment