]> granicus.if.org Git - p11-kit/commitdiff
tests: Avoid uninitialized value in test-proxy.c 0.23.16.1
authorDaiki Ueno <dueno@redhat.com>
Thu, 23 May 2019 11:21:17 +0000 (13:21 +0200)
committerDaiki Ueno <ueno@gnu.org>
Thu, 23 May 2019 12:17:49 +0000 (14:17 +0200)
p11-kit/test-proxy.c

index 9a8f71deca9e8b87437253b8df774da01dae37f3..27ba524d25c6737d36e41a258273741988bc3429 100644 (file)
@@ -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);