mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01: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:
parent
0b2c4e4f5a
commit
9bee3ef88d
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Sun Oct 3 19:30:52 PDT 1999 Manish Singh <yosh@gimp.org>
|
Sun Oct 3 19:30:52 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gmodule.h
|
* gmodule.h
|
||||||
|
@ -256,6 +256,7 @@ g_module_open (const gchar *file_name,
|
|||||||
|
|
||||||
/* check initialization */
|
/* check initialization */
|
||||||
if (g_module_symbol (module, "g_module_check_init", (gpointer) &check_init))
|
if (g_module_symbol (module, "g_module_check_init", (gpointer) &check_init))
|
||||||
|
if (check_init)
|
||||||
check_failed = check_init (module);
|
check_failed = check_init (module);
|
||||||
|
|
||||||
/* we don't call unload() if the initialization check failed. */
|
/* we don't call unload() if the initialization check failed. */
|
||||||
|
Loading…
Reference in New Issue
Block a user