Skip to content

Commit

Permalink
tests: Avoid uninitialized value in test-proxy.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ueno committed May 23, 2019
1 parent 330148b commit c689917
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions p11-kit/test-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c689917

Please sign in to comment.