From: Stef Walter Date: Tue, 14 Jan 2014 14:31:49 +0000 (+0100) Subject: test-iter: Fix use of uninitialized variable X-Git-Tag: 0.20.2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=426db01ae6c793d59b055e2ff7b14eeb14a48e68;p=p11-kit test-iter: Fix use of uninitialized variable --- 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));