[vlc-devel] commit: xtag_free don't need to return anything. ( Rémi Duraffort )
git version control
git at videolan.org
Mon Dec 15 20:02:36 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Dec 15 20:01:40 2008 +0100| [82c1d83c3216aab1f3ec6b8bd8db8b7415ee70d9] | committer: Rémi Duraffort
xtag_free don't need to return anything.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82c1d83c3216aab1f3ec6b8bd8db8b7415ee70d9
---
modules/misc/xml/xtag.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/misc/xml/xtag.c b/modules/misc/xml/xtag.c
index 3f0f311..2c5a150 100644
--- a/modules/misc/xml/xtag.c
+++ b/modules/misc/xml/xtag.c
@@ -122,7 +122,7 @@ static char *xtag_get_attribute( XTag *, char * );
#endif
static XTag *xtag_first_child( XTag *, char * );
static XTag *xtag_next_child( XTag *, char * );
-static XTag *xtag_free( XTag * );
+static void xtag_free( XTag * );
static int xtag_snprint( char *, int, XTag * );
/*****************************************************************************
@@ -756,14 +756,14 @@ static XTag *xtag_parse_tag( XTagParser *parser )
return tag;
}
-static XTag *xtag_free( XTag *xtag )
+static void xtag_free( XTag *xtag )
{
XList *l;
XAttribute *attr;
XTag *child;
if( !xtag )
- return NULL;
+ return;
free( xtag->name );
free( xtag->pcdata );
@@ -787,8 +787,6 @@ static XTag *xtag_free( XTag *xtag )
xlist_free( xtag->children );
free( xtag );
-
- return NULL;
}
static XTag *xtag_new_parse( const char *s, int n )
More information about the vlc-devel
mailing list