aboutsummaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-10-18 12:09:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-10-18 12:09:56 +0200
commit8e8afa82cbb629bd2a95eba1cdf47f65dd62a6d5 (patch)
tree2ab752dcf557cfd6b78d0d5fe173c4ee964adbbb /src/tool_operate.c
parent9a509680f6b9f7d7fd2ef99380e2460a3973f31d (diff)
curl: set INTERLEAVEDATA too
As otherwise the callback could be called with a NULL pointer when RTSP data is provided.
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 54a57a03c..88427ce4c 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -800,6 +800,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
/* where to store */
my_setopt(curl, CURLOPT_WRITEDATA, &outs);
+ my_setopt(curl, CURLOPT_INTERLEAVEDATA, &outs);
if(metalink || !config->use_metalink)
/* what call to write */
my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb);