summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2019-05-23 13:21:17 +0200
committerDaiki Ueno <ueno@gnu.org>2019-05-23 14:17:49 +0200
commitc689917b393379d288b868f70b2f7b7f6aafe430 (patch)
treeadf3bb9637c04e766099668dd7496095fbe6d1c9
parent330148bef17a39075a0af5e446c9502bf3a225ff (diff)
tests: Avoid uninitialized value in test-proxy.c
-rw-r--r--p11-kit/test-proxy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/p11-kit/test-proxy.c b/p11-kit/test-proxy.c
index 9a8f71d..27ba524 100644
--- a/p11-kit/test-proxy.c
+++ b/p11-kit/test-proxy.c
@@ -363,6 +363,10 @@ test_slot_event (void)
rv = proxy->C_Initialize (NULL);
assert (rv == CKR_OK);
+ rv = proxy->C_GetSlotList (CK_FALSE, NULL, &count);
+ assert (rv == CKR_OK);
+ assert (count == 2);
+
rv = proxy->C_GetSlotList (CK_FALSE, slots, &count);
assert (rv == CKR_OK);
assert (count == 2);