summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nautilus-clipboard.c2
-rw-r--r--test/automated/displayless/test-nautilus-search-engine-tracker.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nautilus-clipboard.c b/src/nautilus-clipboard.c
index 7996703fd..5a5b0a9e1 100644
--- a/src/nautilus-clipboard.c
+++ b/src/nautilus-clipboard.c
@@ -42,7 +42,7 @@ typedef struct
static GList *
convert_selection_data_to_str_list (const gchar *data)
{
- g_auto (GStrv) lines;
+ g_auto (GStrv) lines = NULL;
guint number_of_lines;
GList *result;
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);