From: Daiki Ueno Date: Thu, 23 May 2019 11:21:17 +0000 (+0200) Subject: tests: Avoid uninitialized value in test-proxy.c X-Git-Tag: 0.23.16.1^0 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c689917b393379d288b868f70b2f7b7f6aafe430;p=p11-kit tests: Avoid uninitialized value in test-proxy.c --- 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);