diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-10 22:15:50 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-10 22:15:50 +0000 |
commit | 3641b52010003bb5c748d3a675abef35cfa9b095 (patch) | |
tree | e1d0123104f5a1f9e16fe92375330ecf55d645b0 | |
parent | 37a1bc43fe7980acd6e3b9b38eb8f8d1ff7ca350 (diff) |
Fix possible use of body uninitialized. Remove an unneeded free (body
is not allocated before it). CID 243 and more
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17804 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | asxparser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/asxparser.c b/asxparser.c index 65c7d8ccc6..c794a5ff57 100644 --- a/asxparser.c +++ b/asxparser.c @@ -644,7 +644,7 @@ asx_parse_repeat(ASX_Parser_t* parser,char* buffer,char** _attribs) { 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 @@ asx_parser_build_tree(char* buffer,int deep) { 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; } |