diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-18 14:50:35 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-18 14:50:35 +0000 |
commit | 343e1abfa8d880688a1c651ff5361300b364ce2c (patch) | |
tree | 9298bb89e0708ba761a892f08112c7652891ba4a /regress/lib | |
parent | 767afcf8d53450d405b118bda226dd379922e776 (diff) |
move variable declaration up to top to make this compile and pass
on sparc64
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libcrypto/x509/constraints.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/x509/constraints.c b/regress/lib/libcrypto/x509/constraints.c index c94e22faf74..86ed8faf14f 100644 --- a/regress/lib/libcrypto/x509/constraints.c +++ b/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"); |