From 0077a6d51bf9cd9153cdf76cbb14a3cc72ad7e8e Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 8 Oct 2009 12:44:25 +0000 Subject: Attempt to silence bogus compiler warning: "Potential null pointer dereference" --- lib/formdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/formdata.c') 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; -- cgit v1.2.3