]> xenbits.xensource.com Git - libvirt.git/commitdiff
virseclabel: Resolve Coverity FORWARD_NULL issue
authorJohn Ferlan <jferlan@redhat.com>
Fri, 11 Jul 2014 13:35:52 +0000 (09:35 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 14 Jul 2014 09:44:20 +0000 (05:44 -0400)
Resolve issue introduced by commit id '13adf1b'

src/util/virseclabel.c

index e9d973c6be3d8784f8a4a8b474f871ce718c8614..02a834223d2ec2a5f22eeb556593bcd706c61ea3 100644 (file)
@@ -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;