]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Use more C99 initialization in add_route/add_route_ipv6().
authorGert Doering <gert@greenie.muc.de>
Mon, 2 Aug 2021 15:26:19 +0000 (17:26 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 5 Aug 2021 15:31:22 +0000 (17:31 +0200)
commit903e2cf5c1152834437c8d814ed17d0838552f72
treef6a227eb34a7e93ba522afa3014e47445da258e0
parent7953b07bf56c1df0f895ef0702a7732564de5ce9
Use more C99 initialization in add_route/add_route_ipv6().

This gets rid of a few #ifdef and also removes the need for
commit a11bea18b1c93 (argv is only initialized after the
early exit check on RT_DEFINED).

v2:
  use gc_new(), group gc and argv init in both add_route*() functions

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210802152619.30754-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22694.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/route.c