[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:
Martin Baulig 2000-01-13 22:11:39 +00:00 committed by Martin Baulig
parent 0b2c4e4f5a
commit 9bee3ef88d
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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)