summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2020-06-23 00:05:09 +0200
committerSam Thursfield <sam@afuera.me.uk>2020-06-23 00:05:22 +0200
commit346a5c293f47371499b7ab9ce36ca06fe7cb7386 (patch)
treef491da44e9c0eb28a012fd5561ed86ef53a93067
parent5fb97c39405c2a4c56a2b8406e98c2d0107459e3 (diff)
downloadtracker-346a5c293f47371499b7ab9ce36ca06fe7cb7386.tar.gz
cli: Fix potentially uninitialised variable
-rw-r--r--src/tracker/tracker-export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tracker/tracker-export.c b/src/tracker/tracker-export.c
index a6a50e9af..095fdf0cc 100644
--- a/src/tracker/tracker-export.c
+++ b/src/tracker/tracker-export.c
@@ -184,7 +184,7 @@ print_trig (TrackerSparqlCursor *cursor,
gchar *predicate;
gchar *object;
gchar *previous_graph = NULL;
- const gchar *graph;
+ const gchar *graph = NULL;
while (tracker_sparql_cursor_next (cursor, NULL, NULL)) {
graph = tracker_sparql_cursor_get_string (cursor, 0, NULL);