[Libosinfo] [libosinfo PATCH] tools, detect: Check for NULL variants

Cole Robinson crobinso at redhat.com
Wed Jul 17 22:48:14 UTC 2019


On 7/17/19 6:01 AM, Fabiano Fidêncio wrote:
> Both trees & medias may return NULL in case no os-variant was found.
> Let's check for this and avoid a segmentation fault on calling
> osinfo_list_get_length() with a NULL argument.
> 
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>

Reviewed-by: Cole Robinson <crobinso at redhat.com>


- Cole




More information about the Libosinfo mailing list