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,6 +1016,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
} }
else { else {
GetStr(&postdata, nextarg); GetStr(&postdata, nextarg);
if(postdata)
size = strlen(postdata); size = strlen(postdata);
} }