[libvirt] [PATCH] virseclabel: Resolve Coverity FORWARD_NULL issue

John Ferlan jferlan at redhat.com
Fri Jul 11 13:42:14 UTC 2014


Resolve issue introduced by commit id '13adf1b'

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/util/virseclabel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virseclabel.c b/src/util/virseclabel.c
index e9d973c..02a8342 100644
--- a/src/util/virseclabel.c
+++ b/src/util/virseclabel.c
@@ -61,7 +61,7 @@ virSecurityLabelDefNew(const char *model)
     if (VIR_ALLOC(seclabel) < 0 ||
         VIR_STRDUP(seclabel->model, model) < 0) {
         virSecurityLabelDefFree(seclabel);
-        seclabel = NULL;
+        return NULL;
     }
 
     seclabel->relabel = true;
-- 
1.9.3




More information about the libvir-list mailing list