diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2019-02-13 18:44:17 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2019-02-13 18:44:17 +0100 |
commit | e916025f3247f80ad3e8dbbaf661f313c1dbfe14 (patch) | |
tree | 83a239f6deabd42f236adaa515c9e73e9fa8e25e /src | |
parent | 71786c0505926aaf7e9b2477b2fb7ee16a915ec6 (diff) | |
download | curl-e916025f3247f80ad3e8dbbaf661f313c1dbfe14.tar.gz |
curl: "Dereference of null pointer"
Rephrase to satisfy scan-build.
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 537c6ca93..bba1d07e7 100644 --- a/src/tool_formparse.c +++ b/src/tool_formparse.c @@ -628,7 +628,7 @@ static int get_param_part(struct OperationConfig *config, char endchar, } #define SET_TOOL_MIME_PTR(m, field, retcode) { \ if(field) \ - NULL_CHECK(m->field, strdup(field), retcode); \ + NULL_CHECK((m)->field, strdup(field), retcode); \ } int formparse(struct OperationConfig *config, @@ -651,7 +651,7 @@ int formparse(struct OperationConfig *config, CURLcode res; /* Allocate the main mime structure if needed. */ - if(!*mimepost) { + if(!*mimecurrent) { NULL_CHECK(*mimepost, tool_mime_new_parts(NULL), 1); *mimecurrent = *mimepost; } |