summaryrefslogtreecommitdiff
path: root/wrapper/plugin-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/plugin-parse.c')
-rw-r--r--wrapper/plugin-parse.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/wrapper/plugin-parse.c b/wrapper/plugin-parse.c
index 8560dfd..800098f 100644
--- a/wrapper/plugin-parse.c
+++ b/wrapper/plugin-parse.c
@@ -101,11 +101,12 @@ _plugin_parse (FILE *file)
char c[2] = " \0";
char *cs = (char *)&c;
- if ( (c[0]=getc(file)) == EOF ) {
+
+ if ( (c[0]=getc(file)) == EOF )
return NULL;
- } else {
+ else
ungetc (c[0], file);
- }
+
while ( (c[0]=getc(file)) != EOF ) {
if (c[0] == '\n') {
if (strlen(string)==0) {
@@ -114,6 +115,7 @@ _plugin_parse (FILE *file)
command=_plugin_parse(file);
} else {
command->name=string;
+ command->next=_plugin_parse(file);
}
break;
} else {