mirror of
https://github.com/curl/curl.git
synced 2026-07-26 16:47:18 +03:00
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
This commit is contained in:
parent
4798f4e652
commit
0077a6d51b
2 changed files with 5 additions and 3 deletions
|
|
@ -423,7 +423,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost,
|
|||
while(return_value == CURL_FORMADD_OK) {
|
||||
|
||||
/* first see if we have more parts of the array param */
|
||||
if( array_state ) {
|
||||
if( array_state && forms ) {
|
||||
/* get the upcoming option from the given array */
|
||||
option = forms->option;
|
||||
array_value = (char *)forms->value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue