[libsecret] Fix invalid pre-condition in secret_item_get_service()



commit ba7fe4fe8c3624f87c9332a0c3b03e96edcdaade
Author: Stef Walter <stefw gnome org>
Date:   Thu Jul 5 17:11:38 2012 +0200

    Fix invalid pre-condition in secret_item_get_service()

 library/secret-item.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/library/secret-item.c b/library/secret-item.c
index 81f5a2e..011b3f9 100644
--- a/library/secret-item.c
+++ b/library/secret-item.c
@@ -1124,7 +1124,7 @@ secret_item_get_flags (SecretItem *self)
 SecretService *
 secret_item_get_service (SecretItem *self)
 {
-	g_return_val_if_fail (SECRET_IS_COLLECTION (self), NULL);
+	g_return_val_if_fail (SECRET_IS_ITEM (self), NULL);
 	return self->pv->service;
 }
 



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