[tracker] libtracker-miner: Fix libsecret password provider get call using non-NULL GError
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Fix libsecret password provider get call using non-NULL GError
- Date: Thu, 24 Jan 2013 17:30:07 +0000 (UTC)
commit 70a4c3e90563b0e1939abe0e5078b037bbe33d0c
Author: Martyn Russell <martyn lanedo com>
Date: Thu Jan 24 17:24:42 2013 +0000
libtracker-miner: Fix libsecret password provider get call using non-NULL GError
.../tracker-password-provider-gnome.c | 2 +-
.../tracker-password-provider-test.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-password-provider-gnome.c b/src/libtracker-miner/tracker-password-provider-gnome.c
index 85a3cd4..cce0738 100644
--- a/src/libtracker-miner/tracker-password-provider-gnome.c
+++ b/src/libtracker-miner/tracker-password-provider-gnome.c
@@ -203,7 +203,7 @@ password_provider_gnome_get (TrackerPasswordProvider *provider,
GList *found_items = NULL;
GHashTable *search_attributes;
GHashTable *attributes;
- GError *secret_error;
+ GError *secret_error = NULL;
SecretValue *secret = NULL;
SecretItem *found = NULL;
gchar *password;
diff --git a/tests/libtracker-miner/tracker-password-provider-test.c b/tests/libtracker-miner/tracker-password-provider-test.c
index e365964..eed300e 100644
--- a/tests/libtracker-miner/tracker-password-provider-test.c
+++ b/tests/libtracker-miner/tracker-password-provider-test.c
@@ -62,6 +62,7 @@ test_password_provider_getting (void)
&username,
&error);
+ g_assert_no_error (error);
g_assert_cmpstr (username, ==, TEST_USERNAME);
g_assert_cmpstr (password, ==, TEST_PASSWORD);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]