Re: [PATCH 4/4] interface: Need to initialize 'add_to_list'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/08/2013 11:41 PM, John Ferlan wrote:
---
  src/interface/interface_backend_udev.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/interface/interface_backend_udev.c b/src/interface/interface_backend_udev.c
index 3231b73..10b8a5d 100644
--- a/src/interface/interface_backend_udev.c
+++ b/src/interface/interface_backend_udev.c
@@ -352,7 +352,7 @@ udevIfaceListAllInterfaces(virConnectPtr conn,
          const char *path;
          const char *name;
          const char *macaddr;
-        int add_to_list;
+        int add_to_list = 0;
path = udev_list_entry_get_name(dev_entry);
          dev = udev_device_new_from_syspath(udev, path);

   ACK

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]