diff options
-rw-r--r-- | src/tool_writeout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_writeout.c b/src/tool_writeout.c index 8b465db2d..9ce0a997e 100644 --- a/src/tool_writeout.c +++ b/src/tool_writeout.c @@ -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); |