Re: [PATCH 3/3] virSecurityDeviceLabelDefNew: Avoid NULL dereference

2020-03-30 Thread Daniel P . Berrangé
On Mon, Mar 30, 2020 at 11:25:00AM +0200, Michal Privoznik wrote: > While it is impossible for VIR_ALLOC() to return an error, we > should be consistent with the rest of the code and not continue > initializing the virSecurityDeviceLabelDef structure. > > Signed-off-by: Michal Privoznik > --- >

[PATCH 3/3] virSecurityDeviceLabelDefNew: Avoid NULL dereference

2020-03-30 Thread Michal Privoznik
While it is impossible for VIR_ALLOC() to return an error, we should be consistent with the rest of the code and not continue initializing the virSecurityDeviceLabelDef structure. Signed-off-by: Michal Privoznik --- src/util/virseclabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di