Commit cc5201d4 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Martyn Russell

tracker-extract,text: Do not doubly close the FD

tracker_read_text_from_fd() already takes care of closing it.
parent b60fcae6
......@@ -84,12 +84,13 @@ get_file_content (const gchar *uri,
g_debug (" Starting to read '%s' up to %" G_GSIZE_FORMAT " bytes...",
uri, n_bytes);
/* Read up to n_bytes from stream. Output is always, always valid UTF-8 */
/* Read up to n_bytes from stream. Output is always, always valid UTF-8,
* this function closes the FD.
*/
text = tracker_read_text_from_fd (fd,
n_bytes,
TRY_LOCALE_TO_UTF8_CONVERSION);
close (fd);
g_free (uri);
g_free (path);
return text;
......
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