Make sure to not return TRUE if symbol is NULL. (#334440, ITOH Yasufumi)

2006-03-29  Matthias Clasen  <mclasen@redhat.com>

	* gmodule.c (g_module_symbol): Make sure to
	not return TRUE if symbol is NULL.  (#334440,
	ITOH Yasufumi)
This commit is contained in:
Matthias Clasen 2006-03-29 20:56:11 +00:00 committed by Matthias Clasen
parent e83eaad6b9
commit 22eb9cddb9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-03-29 Matthias Clasen <mclasen@redhat.com>
* gmodule.c (g_module_symbol): Make sure to
not return TRUE if symbol is NULL. (#334440,
ITOH Yasufumi)
2006-03-07 Matthias Clasen <mclasen@redhat.com>
* === Released 2.10.1 ===

View File

@ -601,7 +601,7 @@ g_module_symbol (GModule *module,
}
g_static_rec_mutex_unlock (&g_module_global_lock);
return !module_error;
return *symbol != NULL;
}
G_CONST_RETURN gchar*