From 73030173f921344c5dd3d134c6cb82d5ae621b6d Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 18 Sep 2020 14:50:34 +0000 Subject: move variable declaration up to top to make this compile and pass on sparc64 --- src/regress/lib/libcrypto/x509/constraints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/x509/constraints.c b/src/regress/lib/libcrypto/x509/constraints.c index c94e22faf7..86ed8faf14 100644 --- a/src/regress/lib/libcrypto/x509/constraints.c +++ b/src/regress/lib/libcrypto/x509/constraints.c @@ -240,6 +240,7 @@ static int test_invalid_hostnames(void) { int i, failure = 0; + char *nulhost = "www.openbsd.org\0"; for (i = 0; invalid_hostnames[i] != NULL; i++) { if (x509_constraints_valid_host(invalid_hostnames[i], @@ -257,7 +258,6 @@ test_invalid_hostnames(void) goto done; } } - char *nulhost = "www.openbsd.org\0"; if (x509_constraints_valid_host(nulhost, strlen(nulhost) + 1)) { FAIL("hostname with NUL byte accepted\n"); -- cgit v1.2.3-55-g6feb