]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix clang warning in options.c
authorSteffan Karger <steffan@karger.me>
Wed, 20 Aug 2014 21:00:26 +0000 (23:00 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 15 Sep 2014 18:19:56 +0000 (20:19 +0200)
commit555b54cc0f0d6495ff427b9f02ecc3bc8ab73141
tree479c9ba47c53902a8bb50ab065a680eab167cc45
parent5ead2ae0f32e8e6d879ac0de352214a66a7bb351
Fix clang warning in options.c

fixed warning: expression which evaluates to zero treated as a
null pointer constant of type 'struct addrinfo *'

Seems to be innocent, but clang is correct that this is strange.
init_tun() expects two pointers, but options_string() tried to
feed it two uint32_t values.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Message-Id: <1408568426-19601-2-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9004
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c