diff options
Diffstat (limited to 'stream/stream_slice.c')
-rw-r--r-- | stream/stream_slice.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stream/stream_slice.c b/stream/stream_slice.c index d7d0a6bf05..c0dbeeb2af 100644 --- a/stream/stream_slice.c +++ b/stream/stream_slice.c @@ -136,7 +136,7 @@ static int parse_slice_range(stream_t *stream) return STREAM_OK; } -static int open2(struct stream *stream, struct stream_open_args *args) +static int open2(struct stream *stream, const struct stream_open_args *args) { struct priv *p = talloc_zero(stream, struct priv); stream->priv = p; @@ -151,8 +151,9 @@ static int open2(struct stream *stream, struct stream_open_args *args) return parse_ret; } - args->url = stream->path; - int inner_ret = stream_create_with_args(args, &p->inner); + struct stream_open_args args2 = *args; + args2.url = stream->path; + int inner_ret = stream_create_with_args(&args2, &p->inner); if (inner_ret != STREAM_OK) { return inner_ret; } |