From: Marc Hoersken Date: Fri, 18 Apr 2014 22:17:47 +0000 (+0200) Subject: tool_formparse.c: fix possible use of non-null-terminated strings X-Git-Tag: curl-7_37_0~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da900ca9703c93f356f7eb93385a9f9422b707d4;p=curl tool_formparse.c: fix possible use of non-null-terminated strings --- diff --git a/src/tool_formparse.c b/src/tool_formparse.c index d8fc8fd6c..1dcd897e6 100644 --- a/src/tool_formparse.c +++ b/src/tool_formparse.c @@ -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;