diff options
Diffstat (limited to 'python/clidef.py')
-rw-r--r-- | python/clidef.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/clidef.py b/python/clidef.py index 4134f4c94..a140ce3d5 100644 --- a/python/clidef.py +++ b/python/clidef.py @@ -96,7 +96,7 @@ class IP4Handler(IPBase): code = Template('_fail = !inet_aton(argv[_i]->arg, &$varname);') class IP6Handler(IPBase): argtype = 'struct in6_addr' - decl = Template('struct in6_addr $varname = IN6ADDR_ANY_INIT;') + decl = Template('struct in6_addr $varname = {};') code = Template('_fail = !inet_pton(AF_INET6, argv[_i]->arg, &$varname);') class IPGenHandler(IPBase): argtype = 'const union sockunion *' |