mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
util: virNetDevTapCreate: initialize fd to -1
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 95089f481e
This commit is contained in:
parent
8c16f81eb9
commit
2b6cd85504
@ -322,7 +322,7 @@ int virNetDevTapCreate(char **ifname,
|
||||
size_t i = 0;
|
||||
struct ifreq ifr;
|
||||
int ret = -1;
|
||||
int fd = 0;
|
||||
int fd = -1;
|
||||
|
||||
virMutexLock(&virNetDevTapCreateMutex);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user