diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 22:14:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 22:14:13 +0200 |
commit | d30351363f6f5b8fa49c9963cb1c1baf6af93de2 (patch) | |
tree | ef9b4ddbd82fcbe820f16ca1a612e8e77be68005 /libavformat/avio.c | |
parent | 3d48dd01fd3da5d576cb4dd0d80881ec6e745a22 (diff) | |
download | ffmpeg-d30351363f6f5b8fa49c9963cb1c1baf6af93de2.tar.gz |
url_alloc_for_protocol: fix use of uninitialized variable
Fixes CID703830
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index abc70723ef..2e90012ec1 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -156,6 +156,7 @@ static int url_alloc_for_protocol (URLContext **puc, struct URLProtocol *up, av_log(uc, AV_LOG_ERROR, "Error parsing options string %s\n", start); av_freep(&uc->priv_data); av_freep(&uc); + err = AVERROR(EINVAL); goto fail; } memmove(start, key+1, strlen(key)); |