From d30351363f6f5b8fa49c9963cb1c1baf6af93de2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 19 Oct 2012 22:14:13 +0200 Subject: [PATCH] url_alloc_for_protocol: fix use of uninitialized variable Fixes CID703830 Signed-off-by: Michael Niedermayer --- libavformat/avio.c | 1 + 1 file changed, 1 insertion(+) 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));