[tracker] tracker-extract: fix use of g_strreverse()
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: fix use of g_strreverse()
- Date: Wed, 15 Sep 2010 15:33:38 +0000 (UTC)
commit 13e8eedf7900353fd62893b7bd0cc7d8a52c7465
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Sep 15 17:32:51 2010 +0200
tracker-extract: fix use of g_strreverse()
src/tracker-extract/tracker-extract.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 00b948c..b7ab633 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -405,7 +405,8 @@ get_file_metadata (TrackerExtract *extract,
* if we have lots of patterns with wildcards.
* We are assuming here that mime_used is ASCII always, so
* we avoid g_utf8_strreverse() */
- reversed = g_strreverse (mime_used);
+ reversed = g_strdup (mime_used);
+ g_strreverse (reversed);
length = strlen (mime_used);
for (i = 0; i < priv->specific_extractors->len; i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]