From d9c1caf91aa18dfe383a678f618ca644cbba01ef Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 12 Sep 2009 22:32:44 -0400 Subject: this doesn't work/run, but it seems like /progress/ I'm beginning to get depressed about this :| --- wrapper/plugin-find.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'wrapper/plugin-find.h') 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) { } -- cgit v1.2.3-54-g00ecf