Loading src/main.c +12 −4 Original line number Diff line number Diff line Loading @@ -1749,8 +1749,15 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ postdata = file2memory(file, &config->postfieldsize); else postdata = file2string(file); if(file && (file != stdin)) fclose(file); if(!postdata) { /* no data from the file, point to a zero byte string to make this get sent as a POST anyway */ postdata=strdup(""); } } else { GetStr(&postdata, nextarg); Loading Loading @@ -2205,6 +2212,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ if(-1 == stat(nextarg, &statbuf)) { /* failed, remove time condition */ config->timecond = CURL_TIMECOND_NONE; if(!(config->conf & CONF_MUTE)) fprintf(stderr, "Warning: Illegal date format for -z/--timecond and not " "a file name.\n" Loading Loading
src/main.c +12 −4 Original line number Diff line number Diff line Loading @@ -1749,8 +1749,15 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ postdata = file2memory(file, &config->postfieldsize); else postdata = file2string(file); if(file && (file != stdin)) fclose(file); if(!postdata) { /* no data from the file, point to a zero byte string to make this get sent as a POST anyway */ postdata=strdup(""); } } else { GetStr(&postdata, nextarg); Loading Loading @@ -2205,6 +2212,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ if(-1 == stat(nextarg, &statbuf)) { /* failed, remove time condition */ config->timecond = CURL_TIMECOND_NONE; if(!(config->conf & CONF_MUTE)) fprintf(stderr, "Warning: Illegal date format for -z/--timecond and not " "a file name.\n" Loading