From: deraadt Date: Sat, 9 Dec 2017 07:09:25 +0000 (+0000) Subject: Please variable decl before code. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=41b79ad385d31fb2550d4a39dcfc07a923f16331;p=openbsd Please variable decl before code. --- 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;