[tracker] tracker-extract: Drop string constness



commit 61167048c1714cb1911f76722dbaa10c3182a0a1
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Nov 19 23:48:07 2016 +0100

    tracker-extract: Drop string constness
    
    This string is actually copied and freed, so definitely not const.

 src/tracker-extract/tracker-extract.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index e5ba9a5..60de4d8 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -781,7 +781,7 @@ tracker_extract_get_metadata_by_cmdline (TrackerExtract *object,
                        no_data_or_modules = FALSE;
 
                        if (output_format == TRACKER_SERIALIZATION_FORMAT_SPARQL) {
-                               const char *text;
+                               char *text;
 
                                /* If this was going into the tracker-store we'd generate a unique ID
                                 * here, so that the data persisted across file renames.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]