[FFmpeg-soc] [soc]: r4889 - in concat/libavformat: m3u.c pls.c

gkovacs subversion at mplayerhq.hu
Sat Aug 1 05:33:20 CEST 2009


Author: gkovacs
Date: Sat Aug  1 05:33:20 2009
New Revision: 4889

Log:
set pointers to NULL rather than 0

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

Modified: concat/libavformat/m3u.c
==============================================================================
--- concat/libavformat/m3u.c	Sat Aug  1 05:31:44 2009	(r4888)
+++ concat/libavformat/m3u.c	Sat Aug  1 05:33:20 2009	(r4889)
@@ -50,7 +50,8 @@ static int m3u_list_files(ByteIOContext 
 {
     char **flist;
     int i, k, bufsize;
-    i = bufsize = flist = 0;
+    flist = NULL;
+    i = bufsize = 0;
     while (1) {
         char *q;
         char linebuf[1024] = {0};

Modified: concat/libavformat/pls.c
==============================================================================
--- concat/libavformat/pls.c	Sat Aug  1 05:31:44 2009	(r4888)
+++ concat/libavformat/pls.c	Sat Aug  1 05:33:20 2009	(r4889)
@@ -55,7 +55,8 @@ static int pls_list_files(ByteIOContext 
     char buf[1024];
     char s[5] = {0};
     char t[] = "\nFile";
-    state = flist = buflen = i = j = 0;
+    flist = NULL;
+    state = buflen = i = j = 0;
     while ((c = url_fgetc(b))) {
         if (c == EOF)
             break;


More information about the FFmpeg-soc mailing list