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