Re: [libosinfo PATCH 2/3] os: Deal with a NULL profile on _find_install_script()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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.

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux