[gnome-keyring/gnome-3-2] gck: Fix precondition in gck_object_from_handles
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/gnome-3-2] gck: Fix precondition in gck_object_from_handles
- Date: Mon, 17 Oct 2011 20:25:20 +0000 (UTC)
commit d122fc55611791816f14cf97500a95eb22eca53c
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 0067188..1a078c4 100644
--- a/gck/gck-object.c
+++ b/gck/gck-object.c
@@ -233,7 +233,7 @@ gck_objects_from_handle_array (GckSession *session, CK_OBJECT_HANDLE_PTR handles
CK_ULONG i;
g_return_val_if_fail (GCK_IS_SESSION (session), NULL);
- g_return_val_if_fail (handles || !n_handles, NULL);
+ g_return_val_if_fail (n_handles == 0 || handles != NULL, NULL);
for (i = 0; i < n_handles; ++i)
results = g_list_prepend (results, gck_object_from_handle (session, handles[i]));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]