diff --git "a/C:\\Users\\sfonteneau\\Downloads\\libp11-0.4.12.tar\\libp11-0.4.12\\src\\p11_attr.c.original" "b/C:\\Users\\sfonteneau\\Downloads\\libp11-0.4.12.tar\\libp11-0.4.12\\src\\p11_attr.c.new"
index d49456f..d425241 100644
--- "a/C:\\Users\\sfonteneau\\Downloads\\libp11-0.4.12.tar\\libp11-0.4.12\\src\\p11_attr.c.original"
+++ "b/C:\\Users\\sfonteneau\\Downloads\\libp11-0.4.12.tar\\libp11-0.4.12\\src\\p11_attr.c.new"
@@ -162,9 +162,11 @@ void pkcs11_addattr_obj(PKCS11_TEMPLATE *tmpl, int type, pkcs11_i2d_fn enc, void
 
 void pkcs11_zap_attrs(PKCS11_TEMPLATE *tmpl)
 {
+	unsigned int i;
+
 	if (!tmpl->allocated)
 		return;
-	for (unsigned i = 0; i < 32; i++) {
+	for (i = 0; i < 32; i++) {
 		if (tmpl->allocated & (1<<i))
 			OPENSSL_free(tmpl->attrs[i].pValue);
 	}
