westerndigitalcorporation / libzbd

Zoned block device manipulation library and tools
69 stars 27 forks source link

Fix warning unitialized variable `ret` in `zbd_report_zones` #16

Closed ldonoso closed 2 years ago

ldonoso commented 2 years ago

Initialize variable ret to avoid the following warning:

/libzbd/lib/zbd.c:625:9: error:
variable 'ret' may be uninitialized when used here
[-Werror,-Wconditional-uninitialized]
        return ret;
damien-lemoal commented 2 years ago

Looks good. But please add your Signed-off-by tag to the patch commit message.

floatious commented 2 years ago

Luis, thank you for your contribution!