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

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



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)

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