summaryrefslogtreecommitdiff
path: root/test/automated
diff options
context:
space:
mode:
authorErnestas Kulik <ekulik@redhat.com>2018-12-12 14:02:51 +0100
committerErnestas Kulik <ekulik@redhat.com>2018-12-12 14:02:51 +0100
commitd92e1133da0f48d7c9edb5c66ee58b0163be95f1 (patch)
treee8dc6eaede8847742c4143b1e080d84b8de8604f /test/automated
parent1ef858421972a1355f78c2376b684dd8290e14a8 (diff)
downloadnautilus-d92e1133da0f48d7c9edb5c66ee58b0163be95f1.tar.gz
general: Null-initialize some more auto variables
Diffstat (limited to 'test/automated')
-rw-r--r--test/automated/displayless/test-nautilus-search-engine-tracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/automated/displayless/test-nautilus-search-engine-tracker.c b/test/automated/displayless/test-nautilus-search-engine-tracker.c
index 13caafaba..c1f495327 100644
--- a/test/automated/displayless/test-nautilus-search-engine-tracker.c
+++ b/test/automated/displayless/test-nautilus-search-engine-tracker.c
@@ -17,7 +17,7 @@ finished_cb (NautilusSearchEngine *engine,
gpointer user_data)
{
TrackerSparqlConnection *connection;
- g_autofree gchar *sparql_query;
+ g_autofree gchar *sparql_query = NULL;
nautilus_search_provider_stop (NAUTILUS_SEARCH_PROVIDER (engine));
@@ -44,7 +44,7 @@ main (int argc,
g_autoptr (NautilusQuery) query = NULL;
g_autoptr (GFile) location = NULL;
TrackerSparqlConnection *connection;
- g_autofree gchar *sparql_query;
+ g_autofree gchar *sparql_query = NULL;
connection = tracker_sparql_connection_get (NULL, NULL);