applehttp: Avoid reading uninitialized memory
authorMartin Storsjö <martin@martin.st>
Wed, 14 Dec 2011 18:33:39 +0000 (20:33 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 14 Dec 2011 19:34:45 +0000 (21:34 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/applehttp.c

index 7cc0499..19f2b20 100644 (file)
@@ -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;