[MPlayer-cvslog] CVS: main asxparser.c,1.13,1.14

Roberto Togni CVS syncmail at mplayerhq.hu
Fri Mar 10 23:15:53 CET 2006


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv21218

Modified Files:
	asxparser.c 
Log Message:
Fix possible use of body uninitialized. Remove an unneeded free (body 
is not allocated before it). CID 243 and more


Index: asxparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/asxparser.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- asxparser.c	17 Apr 2004 16:46:40 -0000	1.13
+++ asxparser.c	10 Mar 2006 22:15:50 -0000	1.14
@@ -644,7 +644,7 @@
 
 play_tree_t*
 asx_parser_build_tree(char* buffer,int deep) {
-  char *element,*asx_body,**asx_attribs,*body, **attribs;
+  char *element,*asx_body,**asx_attribs,*body = NULL, **attribs;
   int r;
   play_tree_t *asx,*entry,*list = NULL;
   ASX_Parser_t* parser = asx_parser_new();
@@ -666,7 +666,6 @@
   if(strcasecmp(element,"ASX") != 0) {
     mp_msg(MSGT_PLAYTREE,MSGL_ERR,"first element isn't ASX, it's %s\n",element);
     asx_free_attribs(asx_attribs);
-    if(body) free(body);
     asx_parser_free(parser);
     return NULL;
   }




More information about the MPlayer-cvslog mailing list