mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07: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>
|
||||
|
||||
* gmodule.h
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user