Re: [libvirt] [PATCH v3 02/35] cfg.mk: variable initialization when declared with cleanup macro

2018-07-10 Thread Erik Skultety
On Sat, Jun 30, 2018 at 02:30:06PM +0530, Sukrit Bhatnagar wrote: > A variable, which is never assigned a value in the function, might get > passed into the cleanup function which may or may not raise any errors. > > To maintain the correct usage, the variable must be initialized, either > with a v

[libvirt] [PATCH v3 02/35] cfg.mk: variable initialization when declared with cleanup macro

2018-07-01 Thread Sukrit Bhatnagar
A variable, which is never assigned a value in the function, might get passed into the cleanup function which may or may not raise any errors. To maintain the correct usage, the variable must be initialized, either with a value or with NULL. This syntax-check rule takes care of that. Signed-off-b