From 426db01ae6c793d59b055e2ff7b14eeb14a48e68 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 14 Jan 2014 15:31:49 +0100 Subject: test-iter: Fix use of uninitialized variable --- p11-kit/tests/test-iter.c | 1 + 1 file changed, 1 insertion(+) (limited to 'p11-kit/tests') 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)); -- cgit v1.1