[libvirt PATCH] util: ensure min/maj are initialized in virGetDeviceID

Ján Tomko jtomko at redhat.com
Fri Mar 13 06:39:45 UTC 2020


On a Thursday in 2020, Daniel P. Berrangé wrote:
>The stub impl of virGetDeviceID just returns ENOSYS and does not
>initialize the min/maj output parameters. This lead to a false
>positive warning on mingw about possible use of uninitialized
>variables.
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> src/util/virutil.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200313/62fd17dd/attachment-0001.sig>


More information about the libvir-list mailing list