Re: [PATCH v3 1/5] Internal refactory of data structures

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

 



On 08/06/2012 10:30 AM, Michal Privoznik wrote:
On 03.08.2012 16:18, Marcelo Cerri wrote:
...
@@ -11181,10 +11210,10 @@ virDomainDiskDefFormat(virBufferPtr buf,
              if (def->startupPolicy)
                  virBufferEscapeString(buf, " startupPolicy='%s'",
                                        startupPolicy);
-            if (def->seclabel) {
+            if (def->seclabels && def->seclabels[0]) {

I guess def->nseclabels would be sufficient here.


I will keep this check because when a security label is not provide in XML `def->seclabels[0]` is set to NULL. Anyway, this behavior is replaced in the next commits.

Regards,
Marcelo

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