summaryrefslogtreecommitdiff
path: root/libavformat/applehttp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-12-14 20:33:39 +0200
committerMartin Storsjö <martin@martin.st>2011-12-14 21:34:45 +0200
commitc41b9842ceac42bedfd74a7ba2d02add82f818a9 (patch)
treead88849ef22b95f45a1c3c9d8f17a8e40a4637b4 /libavformat/applehttp.c
parent61ad9a4bb36960999a42a501dd7ad7dffb8b34d9 (diff)
applehttp: Avoid reading uninitialized memory
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/applehttp.c')
-rw-r--r--libavformat/applehttp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c
index 7cc04999d1..19f2b203ef 100644
--- a/libavformat/applehttp.c
+++ b/libavformat/applehttp.c
@@ -204,7 +204,7 @@ static int parse_playlist(AppleHTTPContext *c, const char *url,
enum KeyType key_type = KEY_NONE;
uint8_t iv[16] = "";
int has_iv = 0;
- char key[MAX_URL_SIZE];
+ char key[MAX_URL_SIZE] = "";
char line[1024];
const char *ptr;
int close_in = 0;