diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-02-12 10:09:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-02-12 10:21:55 +0100 |
commit | 57439ac87d338dbe53c24216e0392eaf7ea5e71d (patch) | |
tree | ba82e1e978f3a42fcd38f96d4a66bd4545d62b3c /src/tool_setopt.c | |
parent | fc7ab4835b5fd09d0a6f57000633bb6bb6edfda1 (diff) | |
download | curl-bagder/mime-scan-build.tar.gz |
curl: "Function call argument is an uninitialized value"bagder/mime-scan-build
Follow-up to cac0e4a6ad14b42471eb
Detected by scan-build
Diffstat (limited to 'src/tool_setopt.c')
-rw-r--r-- | src/tool_setopt.c | 10 |
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; |