summaryrefslogtreecommitdiff
path: root/wrapper/plugin-parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/plugin-parse.h')
-rw-r--r--wrapper/plugin-parse.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/wrapper/plugin-parse.h b/wrapper/plugin-parse.h
index e4bfe2b..8a565db 100644
--- a/wrapper/plugin-parse.h
+++ b/wrapper/plugin-parse.h
@@ -1,5 +1,5 @@
/* wrapper/plugin-parse.c -- parse rvs plugin config files
- system depends: <stdio.h> <error.h>
+ system depends: <stdio.h> <string.h> <error.h>
Copyright (C) 2009 Luke Shumaker
This file is part of rvs.
@@ -23,6 +23,7 @@
#define FILE_plugin_parse_h_SEEN
#include <stdio.h>
+#include <string.h>
#include <error.h> /* only used in `plugin_parse_escape' for `error' */
#include "rvs.h"
@@ -110,7 +111,7 @@ plugin_parse (FILE *file)
switch (c[0]) {
case '\n':
/*if (strlen(command->name)==0) {*/
- if (c[0]=='\n') {
+ if (command->name[0]=='\0') {
plugin_free_command(command);
return plugin_parse(file);
} else