diff --git a/src/lxc/lxc_user_nic.c b/src/lxc/lxc_user_nic.c index 0f79451d1..6f550f0da 100644 --- a/src/lxc/lxc_user_nic.c +++ b/src/lxc/lxc_user_nic.c @@ -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,