Do not pass flags to g_module_open(NULL)

The flags are ignored when opening the main module, so we
should pass 0 to avoid confusion when reading the source.
This commit is contained in:
Emmanuele Bassi 2009-11-06 14:04:36 +00:00
parent eb0adfe2bc
commit 339b447075

View File

@ -97,8 +97,8 @@ cogl_get_proc_address (const gchar* name)
/* this should find the right function if the program is linked against a /* this should find the right function if the program is linked against a
* library providing it */ * library providing it */
if (module == NULL) if (G_UNLIKELY (module == NULL))
module = g_module_open (NULL, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL); module = g_module_open (NULL, 0);
if (module) if (module)
{ {