From: Lev Stipakov <l...@openvpn.net> Visual Studio doesn't support empty designated initializers for C code, so use { 0 }. Also replace existing CLEAR() call with the new initializers.
Signed-off-by: Lev Stipakov <l...@openvpn.net> --- src/openvpn/push.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/openvpn/push.c b/src/openvpn/push.c index 49b9d1b..368b692 100644 --- a/src/openvpn/push.c +++ b/src/openvpn/push.c @@ -504,9 +504,8 @@ void send_push_reply_auth_token(struct tls_multi *multi) { struct gc_arena gc = gc_new(); + struct push_list push_list = { 0 }; - - struct push_list push_list = {}; prepare_auth_token_push_reply(multi, &gc, &push_list); /* prepare auth token should always add the auth-token option */ @@ -734,10 +733,9 @@ process_incoming_push_request(struct context *c) else { /* per-client push options - peer-id, cipher, ifconfig, ipv6-ifconfig */ - struct push_list push_list; + struct push_list push_list = { 0 }; struct gc_arena gc = gc_new(); - CLEAR(push_list); if (prepare_push_reply(c, &gc, &push_list) && send_push_reply(c, &push_list)) { -- 2.7.4 _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel