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

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



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


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