Am 08.10.19 um 14:26 schrieb Lev Stipakov:
> From: Lev Stipakov <l...@openvpn.net>
> 
> Visual Studio doesn't support designated initializers
> for C code, so replace it with CLEAR() macro.
> 
> Signed-off-by: Lev Stipakov <l...@openvpn.net>
> ---
>  src/openvpn/push.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/openvpn/push.c b/src/openvpn/push.c
> index 49b9d1b..213e2b6 100644
> --- a/src/openvpn/push.c
> +++ b/src/openvpn/push.c
> @@ -504,9 +504,10 @@ void
>  send_push_reply_auth_token(struct tls_multi *multi)
>  {
>      struct gc_arena gc = gc_new();
> +    struct push_list push_list;
>  
> +    CLEAR(push_list);
>  
> -    struct push_list push_list = {};
>      prepare_auth_token_push_reply(multi, &gc, &push_list);
>  
>      /* prepare auth token should always add the auth-token option */
> 

Acked-By: Arne Schwabe

I thought we had those in other places. But I guess I was wrong.

Arne


_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to