summaryrefslogtreecommitdiff
path: root/wrapper/plugin-find.h
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/plugin-find.h')
-rw-r--r--wrapper/plugin-find.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/wrapper/plugin-find.h b/wrapper/plugin-find.h
index afd2e2c..9444f55 100644
--- a/wrapper/plugin-find.h
+++ b/wrapper/plugin-find.h
@@ -84,18 +84,20 @@ plugin_find_command(struct plugin *plugin, char *name)
struct plugin_command_list *
plugin_find_commands(struct plugin *plugin, char *name)
{
- struct plugin_command_list *command=xmalloc( sizeof *command );
- command->command=plugin_find_command(plugin,name);
if (plugin==NULL)
- command->next=NULL;
- else
+ return NULL;
+ else {
+ struct plugin_command_list *command;
+ command=xmalloc( sizeof *command );
+ command->command=plugin_find_command(plugin,name);
command->next=plugin_find_commands(plugin->next,name);
- return command;
+ return command;
+ }
}
#ifdef DEBUG
void
-plugin_print_command_list(struct command_list *list, ind)
+plugin_print_command_list(struct plugin_command_list *list, int ind)
{
}