Commit b5300487 by Nick Clifton Committed by Nick Clifton

plugin.c (register_plugin_info): Produce an error message if the plugin is not…

plugin.c (register_plugin_info): Produce an error message if the plugin is not found in the hash table.

	* plugin.c (register_plugin_info): Produce an error message if the
	plugin is not found in the hash table.

From-SVN: r241613
parent ad6e4ba8
2016-10-27 Nick Clifton <nickc@redhat.com>
* plugin.c (register_plugin_info): Produce an error message if the
plugin is not found in the hash table.
2016-10-27 Bin Cheng <bin.cheng@arm.com>
* match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
......
......@@ -330,7 +330,15 @@ static void
register_plugin_info (const char* name, struct plugin_info *info)
{
void **slot = htab_find_slot (plugin_name_args_tab, name, NO_INSERT);
struct plugin_name_args *plugin = (struct plugin_name_args *) *slot;
struct plugin_name_args *plugin;
if (slot == NULL)
{
error ("unable to register info for plugin '%s' - plugin name not found",
name);
return;
}
plugin = (struct plugin_name_args *) *slot;
plugin->version = info->version;
plugin->help = info->help;
}
......
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