diff options
author | inoguchi <> | 2017-01-25 16:53:21 +0000 |
---|---|---|
committer | inoguchi <> | 2017-01-25 16:53:21 +0000 |
commit | 276285ad64cc31b4a733563d702dd870939e4e53 (patch) | |
tree | 085b5fbb4e57e88872c7018c4fce233d5ad096e1 | |
parent | a4e2d8d4f9d9c0a8b0611bed6a667b8f0d4dabde (diff) | |
download | openbsd-276285ad64cc31b4a733563d702dd870939e4e53.tar.gz openbsd-276285ad64cc31b4a733563d702dd870939e4e53.tar.bz2 openbsd-276285ad64cc31b4a733563d702dd870939e4e53.zip |
Fix array initialization syntax for ocspcheck.c
Conformance to C99, and avoiding build break on VisualStudio and HP-UX.
OK millert@
-rw-r--r-- | src/usr.sbin/ocspcheck/ocspcheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr.sbin/ocspcheck/ocspcheck.c b/src/usr.sbin/ocspcheck/ocspcheck.c index 252e8997f7..1483081f88 100644 --- a/src/usr.sbin/ocspcheck/ocspcheck.c +++ b/src/usr.sbin/ocspcheck/ocspcheck.c | |||
@@ -505,7 +505,7 @@ main (int argc, char **argv) | |||
505 | { | 505 | { |
506 | char *host = NULL, *path = "/", *certfile = NULL, *outfile = NULL, | 506 | char *host = NULL, *path = "/", *certfile = NULL, *outfile = NULL, |
507 | *cafile = NULL; | 507 | *cafile = NULL; |
508 | struct addr addrs[MAX_SERVERS_DNS] = { }; | 508 | struct addr addrs[MAX_SERVERS_DNS] = {0}; |
509 | struct source sources[MAX_SERVERS_DNS]; | 509 | struct source sources[MAX_SERVERS_DNS]; |
510 | int i, ch, staplefd = -1, nonce = 1; | 510 | int i, ch, staplefd = -1, nonce = 1; |
511 | ocsp_request *request = NULL; | 511 | ocsp_request *request = NULL; |