mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-29 14:14:31 +00:00
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/3850 Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
7cf81ec6f1
commit
d41b0293f5
@ -1886,7 +1886,8 @@ static int netdev_get_flag(const char *name, int *flag)
|
||||
*/
|
||||
int lxc_netdev_isup(const char *name)
|
||||
{
|
||||
int err, flag;
|
||||
int err;
|
||||
int flag = 0;
|
||||
|
||||
err = netdev_get_flag(name, &flag);
|
||||
if (err)
|
||||
|
Loading…
Reference in New Issue
Block a user