summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2017-01-25 16:53:21 +0000
committerinoguchi <>2017-01-25 16:53:21 +0000
commitcd0eef759169d161812bcae5046e164fe055797f (patch)
tree085b5fbb4e57e88872c7018c4fce233d5ad096e1 /src
parent8663592b37fb4ff99769965286777666cc7f480c (diff)
downloadopenbsd-cd0eef759169d161812bcae5046e164fe055797f.tar.gz
openbsd-cd0eef759169d161812bcae5046e164fe055797f.tar.bz2
openbsd-cd0eef759169d161812bcae5046e164fe055797f.zip
Fix array initialization syntax for ocspcheck.c
Conformance to C99, and avoiding build break on VisualStudio and HP-UX. OK millert@
Diffstat (limited to 'src')
-rw-r--r--src/usr.sbin/ocspcheck/ocspcheck.c2
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;