[libvirt PATCH 2/5] domain_conf: Reduce scope of gic_version in virDomainFeaturesDefParse

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

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 1d0ef17318..f73814f3c7 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -18157,7 +18157,6 @@ virDomainFeaturesDefParse(virDomainDefPtr def,
 {
     g_autofree xmlNodePtr *nodes = NULL;
     xmlNodePtr node = NULL;
-    int gic_version;
     size_t i;
     int n;
 
@@ -18230,7 +18229,7 @@ virDomainFeaturesDefParse(virDomainDefPtr def,
 
         case VIR_DOMAIN_FEATURE_GIC:
             if ((tmp = virXMLPropString(nodes[i], "version"))) {
-                gic_version = virGICVersionTypeFromString(tmp);
+                int gic_version = virGICVersionTypeFromString(tmp);
                 if (gic_version < 0 || gic_version == VIR_GIC_VERSION_NONE) {
                     virReportError(VIR_ERR_XML_ERROR,
                                    _("malformed gic version: %s"), tmp);
-- 
2.26.2




[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]

  Powered by Linux