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

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



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


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