Commit 76e4ad71 authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

fail gradefully if 'register_gedit_plugin' symbol is NULL.

2006-12-10  Paolo Borelli  <pborelli@katamail.com>

	* gedit/gedit-module.c: fail gradefully if
	'register_gedit_plugin' symbol is NULL.
parent 9cedbee5
2006-12-10 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-module.c: fail gradefully if
'register_gedit_plugin' symbol is NULL.
2006-12-10 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-window.c: set the sensitivity of "paste"
......
......@@ -122,7 +122,15 @@ gedit_module_load (GTypeModule *gmodule)
return FALSE;
}
g_assert (register_func);
/* symbol can still be NULL even though g_module_symbol
* returned TRUE */
if (register_func == NULL)
{
g_warning ("Symbol 'register_gedit_plugin' should not be NULL");
g_module_close (module->library);
return FALSE;
}
module->type = register_func (gmodule);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment