provide curl_formfree() even when http is disabled, it does nothing then
authorDaniel Stenberg <daniel@haxx.se>
Sun, 13 Jun 2004 08:59:37 +0000 (08:59 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 13 Jun 2004 08:59:37 +0000 (08:59 +0000)
lib/formdata.c

index 28837bc..8fb6d9c 100644 (file)
@@ -1468,4 +1468,10 @@ CURLFORMcode curl_formadd(struct curl_httppost **httppost,
   return CURL_FORMADD_DISABLED;
 }
 
+void curl_formfree(struct curl_httppost *form)
+{
+  (void)form;
+  /* does nothing HTTP is disabled */
+}
+
 #endif  /* CURL_DISABLE_HTTP */