[FFmpeg-soc] [soc]: r4888 - in concat/libavformat: pls.c xspf.c

gkovacs subversion at mplayerhq.hu
Sat Aug 1 05:31:44 CEST 2009


Author: gkovacs
Date: Sat Aug  1 05:31:44 2009
New Revision: 4888

Log:
initialize arrays to 0

Modified:
   concat/libavformat/pls.c
   concat/libavformat/xspf.c

Modified: concat/libavformat/pls.c
==============================================================================
--- concat/libavformat/pls.c	Sat Aug  1 05:17:30 2009	(r4887)
+++ concat/libavformat/pls.c	Sat Aug  1 05:31:44 2009	(r4888)
@@ -53,7 +53,7 @@ static int pls_list_files(ByteIOContext 
     char state;
     char **flist;
     char buf[1024];
-    char s[5];
+    char s[5] = {0};
     char t[] = "\nFile";
     state = flist = buflen = i = j = 0;
     while ((c = url_fgetc(b))) {

Modified: concat/libavformat/xspf.c
==============================================================================
--- concat/libavformat/xspf.c	Sat Aug  1 05:17:30 2009	(r4887)
+++ concat/libavformat/xspf.c	Sat Aug  1 05:31:44 2009	(r4888)
@@ -53,7 +53,7 @@ static int xspf_list_files(ByteIOContext
     char state;
     char **flist;
     char buf[1024];
-    char s[10];
+    char s[10] = {0};
     char t[] = "<location>";
     flist = NULL;
     state = buflen = i = j = 0;


More information about the FFmpeg-soc mailing list