summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/err/err.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/err/err.c b/lib/libssl/src/crypto/err/err.c
index 0802249da45..75a1d0181e6 100644
--- a/lib/libssl/src/crypto/err/err.c
+++ b/lib/libssl/src/crypto/err/err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.c,v 1.39 2014/08/24 16:11:39 bcook Exp $ */
+/* $OpenBSD: err.c,v 1.40 2014/10/05 15:21:48 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1105,8 +1105,9 @@ ERR_add_error_vdata(int num, va_list args)
{
char format[129];
char *errbuf;
- format[0] = '\0';
int i;
+
+ format[0] = '\0';
for (i = 0; i < num; i++) {
if (strlcat(format, "%s", sizeof(format)) >= sizeof(format)) {
ERR_set_error_data("too many errors", ERR_TXT_STRING);