mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:43:32 +03:00
Bug #149: Deletion of unnecessary checks before a few calls of cURL functions
The following functions return immediately if a null pointer was passed. * Curl_cookie_cleanup * curl_formfree It is therefore not needed that a function caller repeats a corresponding check. This issue was fixed by using the software Coccinelle 1.0.0-rc24. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
This commit is contained in:
parent
29c655c0a6
commit
9e661601fe
3 changed files with 3 additions and 6 deletions
|
|
@ -969,8 +969,7 @@ void curl_formfree(struct curl_httppost *form)
|
|||
next=form->next; /* the following form line */
|
||||
|
||||
/* recurse to sub-contents */
|
||||
if(form->more)
|
||||
curl_formfree(form->more);
|
||||
curl_formfree(form->more);
|
||||
|
||||
if(!(form->flags & HTTPPOST_PTRNAME))
|
||||
free(form->name); /* free the name */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue