[gnome-keyring] gck: Fix precondition in gck_object_from_handles
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] gck: Fix precondition in gck_object_from_handles
- Date: Thu, 29 Sep 2011 14:28:56 +0000 (UTC)
commit 548c427bd61253bfb7bc822346539bd89443ff8d
Author: Stef Walter <stefw collabora co uk>
Date: Thu Sep 29 15:26:36 2011 +0200
gck: Fix precondition in gck_object_from_handles
gck/gck-object.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gck/gck-object.c b/gck/gck-object.c
index 45bec74..ee89a45 100644
--- a/gck/gck-object.c
+++ b/gck/gck-object.c
@@ -242,7 +242,7 @@ gck_objects_from_handle_array (GckSession *session,
CK_ULONG i;
g_return_val_if_fail (GCK_IS_SESSION (session), NULL);
- g_return_val_if_fail (object_handles == NULL || n_object_handles == 0, NULL);
+ g_return_val_if_fail (n_object_handles == 0 || object_handles != NULL, NULL);
for (i = 0; i < n_object_handles; ++i)
results = g_list_prepend (results, gck_object_from_handle (session, object_handles[i]));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]