summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-02-12 10:09:09 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-02-12 14:39:04 +0100
commit4854b344e79babe1c7741fe94ac8d3efa12f26dc (patch)
tree538b3f0aec843163d4f0023b078fe8e0560dd86d /src
parenta6d134e17ab8efb2f8fa7c4ff877f6ddb9685f14 (diff)
downloadcurl-4854b344e79babe1c7741fe94ac8d3efa12f26dc.tar.gz
curl: "Function call argument is an uninitialized value"
Follow-up to cac0e4a6ad14b42471eb Detected by scan-build Closes #3560
Diffstat (limited to 'src')
-rw-r--r--src/tool_setopt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c
index 878bea2b4..26102d312 100644
--- a/src/tool_setopt.c
+++ b/src/tool_setopt.c
@@ -419,14 +419,14 @@ static CURLcode libcurl_generate_mime(CURL *curl,
/* Wrapper to build and generate source code for a mime part. */
static CURLcode libcurl_generate_mime_part(CURL *curl,
- struct GlobalConfig *config,
- tool_mime *part,
- curl_mime *mime,
- int mimeno)
+ struct GlobalConfig *config,
+ tool_mime *part,
+ curl_mime *mime,
+ int mimeno)
{
CURLcode ret = CURLE_OK;
curl_mimepart *mimepart;
- int submimeno;
+ int submimeno = 0;
curl_mime *submime = NULL;
char *escaped = NULL;
const char *data = NULL;