[Libosinfo] [PATCH 2/7] Fixed bad cast in osinfo_os_find_install_script

Christophe Fergeau cfergeau at redhat.com
Mon Apr 14 14:30:40 UTC 2014


Hey,

On Mon, Apr 14, 2014 at 04:09:33PM +0200, Cédric Bosdonnat wrote:
> ---
>  osinfo/osinfo_os.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/osinfo/osinfo_os.c b/osinfo/osinfo_os.c
> index c8b6ad5..3fa814f 100644
> --- a/osinfo/osinfo_os.c
> +++ b/osinfo/osinfo_os.c
> @@ -607,7 +607,7 @@ void osinfo_os_add_recommended_resources(OsinfoOs *os,
>  OsinfoInstallScript *osinfo_os_find_install_script(OsinfoOs *os, const gchar *profile)
>  {
>      g_return_val_if_fail(OSINFO_IS_OS(os), NULL);
> -    GList *scripts = osinfo_list_get_elements(OSINFO_LIST(os));
> +    GList *scripts = osinfo_list_get_elements(OSINFO_LIST(os->priv->scripts));
>      GList *tmp = scripts;

Good catch, could be interesting to have a simple call to this method in
test-install-script.c?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20140414/63961ef5/attachment.sig>


More information about the Libosinfo mailing list