network: please broken compilers

Some users report that compilation fails because of reports that this variable can be used uninitialized. Initialize it to silence the compiler. Fixes: https://github.com/lxc/lxc/issues/3850Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent f07ba4f9
...@@ -1886,7 +1886,8 @@ static int netdev_get_flag(const char *name, int *flag) ...@@ -1886,7 +1886,8 @@ static int netdev_get_flag(const char *name, int *flag)
*/ */
int lxc_netdev_isup(const char *name) int lxc_netdev_isup(const char *name)
{ {
int err, flag; int err;
int flag = 0;
err = netdev_get_flag(name, &flag); err = netdev_get_flag(name, &flag);
if (err) if (err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment