# HG changeset patch # User rtognimp # Date 1142028950 0 # Node ID 51b992a72b17b597652d77a4712b80e8ddfe1242 # Parent ac31a89c3d9992932e39c1308f4d143560647a71 Fix possible use of body uninitialized. Remove an unneeded free (body is not allocated before it). CID 243 and more diff -r ac31a89c3d99 -r 51b992a72b17 asxparser.c --- a/asxparser.c Fri Mar 10 21:34:54 2006 +0000 +++ b/asxparser.c Fri Mar 10 22:15:50 2006 +0000 @@ -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; }