tool_formparse.c: fix possible use of non-null-terminated strings

This commit is contained in:
Marc Hoersken 2014-04-19 00:17:47 +02:00
parent b0e742544b
commit da900ca970
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ int formparse(struct OperationConfig *config,
build a linked list with the info */
char name[256];
char *contents = NULL;
char type_major[128];
char type_minor[128];
char type_major[128] = "";
char type_minor[128] = "";
char *contp;
const char *type = NULL;
char *sep;