[Libosinfo] [libosinfo PATCH 2/3] os: Deal with a NULL profile on _find_install_script()
Fabiano Fidêncio
fidencio at redhat.com
Mon Dec 10 13:21:31 UTC 2018
[snip]
> > + if (profile == NULL)
> > + return script;
> > +
>
> Since 'NULL' is not a valid value, shouldn't this be
> g_return_val_if_fail (profile != NULL, NULL);
> ?
Makes sense. I'll do this change and also adapt the test to *not* call
osinfo_os_find_install_script() passing a NULL profile.
More information about the Libosinfo
mailing list