summaryrefslogtreecommitdiff
path: root/system-linux.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2023-02-12 21:38:04 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2023-02-19 16:09:56 +0100
commitc77417a683ac66f95daabb971a308ea7a12b5f85 (patch)
tree3b385d690c3f4009c9b907f240d3995f0be25b1f /system-linux.c
parent8ebf033176363dc4584e36ebbbc7f626ef31eb8f (diff)
downloadnetifd-c77417a683ac66f95daabb971a308ea7a12b5f85.tar.gz
netifd: Explicitly zero initialize variables
The -pedantic option was complaining about the old initialization and prefers if it is explicitly initialized to zero. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c
index d13a561..e4041fb 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1529,7 +1529,7 @@ int system_netns_set(int netns_fd)
int system_veth_add(struct device *veth, struct veth_config *cfg)
{
struct nl_msg *msg;
- struct ifinfomsg empty_iim = {};
+ struct ifinfomsg empty_iim = {0,};
struct nlattr *linkinfo, *data, *veth_info;
int rv;