mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
repository: Fix g_irepository_get_c_prefix()
It was returning the wrong data. https://bugzilla.gnome.org/show_bug.cgi?id=659749
This commit is contained in:
parent
87fd1d5dad
commit
11cf4c56f3
@ -929,7 +929,7 @@ g_irepository_get_c_prefix (GIRepository *repository,
|
|||||||
g_return_val_if_fail (typelib != NULL, NULL);
|
g_return_val_if_fail (typelib != NULL, NULL);
|
||||||
|
|
||||||
header = (Header *) typelib->data;
|
header = (Header *) typelib->data;
|
||||||
if (header->shared_library)
|
if (header->c_prefix)
|
||||||
return g_typelib_get_string (typelib, header->c_prefix);
|
return g_typelib_get_string (typelib, header->c_prefix);
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user