diff options
author | 2017-01-25 16:53:21 +0000 | |
---|---|---|
committer | 2017-01-25 16:53:21 +0000 | |
commit | 0503f29a2559aa2ae6d64e6a532f58cb272218a8 (patch) | |
tree | 08abe9953ef854becf0043ca776b5229a81f0498 | |
parent | As NET_LOCK() is a read/write lock, it can sleep in sotask(). So (diff) | |
download | wireguard-openbsd-0503f29a2559aa2ae6d64e6a532f58cb272218a8.tar.xz wireguard-openbsd-0503f29a2559aa2ae6d64e6a532f58cb272218a8.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-- | usr.sbin/ocspcheck/ocspcheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ocspcheck/ocspcheck.c b/usr.sbin/ocspcheck/ocspcheck.c index 252e8997f73..1483081f88a 100644 --- a/usr.sbin/ocspcheck/ocspcheck.c +++ b/usr.sbin/ocspcheck/ocspcheck.c @@ -505,7 +505,7 @@ main (int argc, char **argv) { char *host = NULL, *path = "/", *certfile = NULL, *outfile = NULL, *cafile = NULL; - struct addr addrs[MAX_SERVERS_DNS] = { }; + struct addr addrs[MAX_SERVERS_DNS] = {0}; struct source sources[MAX_SERVERS_DNS]; int i, ch, staplefd = -1, nonce = 1; ocsp_request *request = NULL; |