mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
[FIXME: On NetBSD, dlsym() doesn't set errno != 0 when the system cannot be
found; this leads to an incorrect return value of g_module_symbol.] 2000-01-13 Martin Baulig <martin@home-of-linux.org> * gmodule.c (g_module_open): Check whether `check_init' is not NULL before we attempt to call it.
This commit is contained in:
committed by
Martin Baulig
parent
0b2c4e4f5a
commit
9bee3ef88d
@@ -256,7 +256,8 @@ g_module_open (const gchar *file_name,
|
||||
|
||||
/* check initialization */
|
||||
if (g_module_symbol (module, "g_module_check_init", (gpointer) &check_init))
|
||||
check_failed = check_init (module);
|
||||
if (check_init)
|
||||
check_failed = check_init (module);
|
||||
|
||||
/* we don't call unload() if the initialization check failed. */
|
||||
if (!check_failed)
|
||||
|
Reference in New Issue
Block a user