curl tool: OOM handling fixes

This commit is contained in:
Yang Tse 2011-10-05 19:33:46 +02:00
parent ec73fd89ed
commit 0f19e0145a

View File

@ -1016,7 +1016,8 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
} }
else { else {
GetStr(&postdata, nextarg); GetStr(&postdata, nextarg);
size = strlen(postdata); if(postdata)
size = strlen(postdata);
} }
#ifdef CURL_DOES_CONVERSIONS #ifdef CURL_DOES_CONVERSIONS