summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2014-01-14 15:31:49 +0100
committerStef Walter <stef@thewalter.net>2014-01-14 15:37:35 +0100
commit426db01ae6c793d59b055e2ff7b14eeb14a48e68 (patch)
treeb8bb19ac74520eed255d31a544af529fb7818b75
parent99904e84d9f8f0637f66107807ac4ac9e3339e4a (diff)
downloadp11-kit-426db01ae6c793d59b055e2ff7b14eeb14a48e68.tar.gz
test-iter: Fix use of uninitialized variable
-rw-r--r--p11-kit/tests/test-iter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/p11-kit/tests/test-iter.c b/p11-kit/tests/test-iter.c
index e8b1e84..055a4b3 100644
--- a/p11-kit/tests/test-iter.c
+++ b/p11-kit/tests/test-iter.c
@@ -987,6 +987,7 @@ test_get_attributes (void)
iter = p11_kit_iter_new (NULL, 0);
p11_kit_iter_begin (iter, modules);
+ at = 0;
while ((rv = p11_kit_iter_next (iter)) == CKR_OK) {
assert (sizeof (attrs) == sizeof (template));
memcpy (&attrs, &template, sizeof (attrs));