Browse Source

url_alloc_for_protocol: fix use of uninitialized variable

Fixes CID703830
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
d30351363f
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/avio.c

+ 1
- 0
libavformat/avio.c View File

@@ -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));


Loading…
Cancel
Save