[libvirt] [patch] remove duplicate call of virInitialize()

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

 



Hi,

This patch removes the redundant call to virInitialize() inside
__virStateInitialize().

Thanks,
Quynh
Index: src/libvirt.c
===================================================================
RCS file: /data/cvs/libvirt/src/libvirt.c,v
retrieving revision 1.150
diff -u -r1.150 libvirt.c
--- src/libvirt.c	1 Aug 2008 06:42:45 -0000	1.150
+++ src/libvirt.c	18 Aug 2008 05:20:13 -0000
@@ -569,9 +569,6 @@
     if (virInitialize() < 0)
         return -1;
 
-    if (virInitialize() < 0)
-        return -1;
-
     for (i = 0 ; i < virStateDriverTabCount ; i++) {
         if (virStateDriverTab[i]->initialize &&
             virStateDriverTab[i]->initialize() < 0)
--
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]