writeout: fix NULL dereference for "this url"
Detected by torture test 1029
Follow-up to 7a90ddf88f
Closes #6374
This commit is contained in:
parent
aba01da639
commit
44a504e5e4
@ -141,7 +141,8 @@ void ourWriteOut(CURL *curl, struct per_transfer *per, const char *writeinfo,
|
||||
curl_easy_strerror(result), stream);
|
||||
break;
|
||||
case VAR_INPUT_URL:
|
||||
fputs(per->this_url, stream);
|
||||
if(per->this_url)
|
||||
fputs(per->this_url, stream);
|
||||
break;
|
||||
case VAR_URLNUM:
|
||||
fprintf(stream, "%u", per->urlnum);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user