From: Christian Brauner Date: Thu, 31 Aug 2017 21:13:44 +0000 (+0200) Subject: lxc-user-nic: initialize vars to silence gcc-7 X-Git-Tag: lxc-2.0.9~48^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d9677174c8a945c033d1426593adee42ba96e7f;p=thirdparty%2Flxc.git lxc-user-nic: initialize vars to silence gcc-7 Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lxc_user_nic.c b/src/lxc/lxc_user_nic.c index 7541e4b8a..9164e44dc 100644 --- a/src/lxc/lxc_user_nic.c +++ b/src/lxc/lxc_user_nic.c @@ -1055,10 +1055,10 @@ do_partial_cleanup: int main(int argc, char *argv[]) { - int container_veth_ifidx, fd, host_veth_ifidx, n, pid, request, ret; + int fd, n, pid, request, ret; char *me, *newname; struct user_nic_args args; - int netns_fd = -1; + int container_veth_ifidx = -1, host_veth_ifidx = -1, netns_fd = -1; char *cnic = NULL, *nicname = NULL; struct alloted_s *alloted = NULL;