Skip to content

Commit

Permalink
lxc-user-nic: initialize vars to silence gcc-7
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Sep 4, 2017
1 parent e1008bc commit 9d96771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/lxc_user_nic.c
Expand Up @@ -1055,10 +1055,10 @@ static bool is_privileged_over_netns(int netns_fd)

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;

Expand Down

0 comments on commit 9d96771

Please sign in to comment.