aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorZhentan Feng <spyfeng@gmail.com>2010-08-28 23:55:26 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-08-28 23:55:26 +0000
commit37c506e8b94d2691539bc29ef861903503a99b82 (patch)
treeaa90a240570ad92369af9c1552581f8f9198e6f3 /libavformat
parent774b20ca72e577973f0dd7c5dfa73680288b3f9d (diff)
downloadffmpeg-37c506e8b94d2691539bc29ef861903503a99b82.tar.gz
stream_selection can be freed in the fail case, in which case it's unassigned.
Therefore, init it with NULL to prevent a crash on invalid streams. Patch by Zhentan Feng <spyfeng gmail com>. Originally committed as revision 24960 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mmsh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c
index 5a74d9b7ae..4214b0e111 100644
--- a/libavformat/mmsh.c
+++ b/libavformat/mmsh.c
@@ -214,7 +214,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
{
int i, port, err;
char httpname[256], path[256], host[128], location[1024];
- char *stream_selection;
+ char *stream_selection = NULL;
char headers[1024];
MMSHContext *mmsh;
MMSContext *mms;