From 41b79ad385d31fb2550d4a39dcfc07a923f16331 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 9 Dec 2017 07:09:25 +0000 Subject: [PATCH] Please variable decl before code. --- lib/libcrypto/x509/x509_vpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/x509/x509_vpm.c b/lib/libcrypto/x509/x509_vpm.c index 3482227477b..e0111d2f174 100644 --- a/lib/libcrypto/x509/x509_vpm.c +++ b/lib/libcrypto/x509/x509_vpm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_vpm.c,v 1.15 2016/12/21 15:15:45 jsing Exp $ */ +/* $OpenBSD: x509_vpm.c,v 1.16 2017/12/09 07:09:25 deraadt Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2004. */ @@ -101,11 +101,11 @@ sk_deep_copy(void *sk_void, void *copy_func_void, void *free_func_void) void *(*copy_func)(void *) = copy_func_void; void (*free_func)(void *) = free_func_void; _STACK *ret = sk_dup(sk); + size_t i; if (ret == NULL) return NULL; - size_t i; for (i = 0; i < ret->num; i++) { if (ret->data[i] == NULL) continue; -- 2.20.1