diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2014-04-19 00:17:47 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2014-04-19 00:17:47 +0200 |
commit | da900ca9703c93f356f7eb93385a9f9422b707d4 (patch) | |
tree | d0e32fe87842dcd619fe55b4a6d493e37c687e28 /src | |
parent | b0e742544be22ede33206a597b22682e51e0c676 (diff) | |
download | curl-da900ca9703c93f356f7eb93385a9f9422b707d4.tar.gz |
tool_formparse.c: fix possible use of non-null-terminated strings
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_formparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |