]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-user-nic: remove double initialization
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 10 Sep 2017 06:23:36 +0000 (08:23 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 24 Sep 2017 04:21:13 +0000 (00:21 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxc_user_nic.c

index 0f79451d13293be7d39175b7ea0f743235fc2e4b..6f550f0da9adc5f18ad9e37b8fcd9a0c91cea711 100644 (file)
@@ -638,7 +638,7 @@ static int count_entries(char *buf, off_t len, char *name, char *net_type, char
 {
        int count = 0;
        bool owner = false;;
-       char *buf_end = &buf[len];
+       char *buf_end;
 
        buf_end = &buf[len];
        while ((buf = find_line(buf, buf_end, name, net_type, net_link, NULL,