*
***************************************************************************/
-int formparse(struct Configurable *config,
+int formparse(struct OperationConfig *config,
const char *input,
struct curl_httppost **httppost,
struct curl_httppost **last_post,
build a linked list with the info */
char name[256];
char *contents = NULL;
- char type_major[128];
- char type_minor[128];
+ char type_major[128] = "";
+ char type_minor[128] = "";
char *contp;
const char *type = NULL;
char *sep;
/* Allocate the contents */
contents = strdup(contp+1);
if(!contents) {
- fprintf(config->errors, "out of memory\n");
+ fprintf(config->global->errors, "out of memory\n");
return 1;
}
contp = contents;
}
forms = malloc((count+1)*sizeof(struct curl_forms));
if(!forms) {
- fprintf(config->errors, "Error building form post!\n");
+ fprintf(config->global->errors, "Error building form post!\n");
Curl_safefree(contents);
FreeMultiInfo(&multi_start, &multi_current);
return 4;