aboutsummaryrefslogtreecommitdiff
path: root/lib/formdata.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-08 12:44:25 +0000
committerYang Tse <yangsita@gmail.com>2009-10-08 12:44:25 +0000
commit0077a6d51bf9cd9153cdf76cbb14a3cc72ad7e8e (patch)
treeb43164bc3d41ce4515263b7624fa6f201c804186 /lib/formdata.c
parent4798f4e65258afb6935d0b471e7d1b5a0d5edf1e (diff)
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
Diffstat (limited to 'lib/formdata.c')
-rw-r--r--lib/formdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index ab5f99118..9b458c0e2 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -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;