summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2007-10-23 22:49:46 +0100
committerBastien Nocera <hadess@hadess.net>2007-10-23 22:49:46 +0100
commitebd17ca2bcd99a743d36c648ec7ae0d3f0286419 (patch)
tree951461e14280c33a287e7c7a32f999c6fcdf07ff
parent558b641ae448f94e238f01a945fb892e8b4cde4e (diff)
downloadxine-lib-ebd17ca2bcd99a743d36c648ec7ae0d3f0286419.tar.gz
xine-lib-ebd17ca2bcd99a743d36c648ec7ae0d3f0286419.tar.bz2
Simple patch to the XML parser
Found this little problem (was causing some "uninitialised variable accesses" under valgrind) while implementing Podcast reading in RB using Totem's playlist parser. --HG-- extra : transplant_source : J%D9/%16%E2i%B2%84%FA%8A%85%888N%A5%B4%16s%BD%16
-rw-r--r--src/xine-utils/xmlparser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xine-utils/xmlparser.c b/src/xine-utils/xmlparser.c
index 363c6381f..2ace4aba1 100644
--- a/src/xine-utils/xmlparser.c
+++ b/src/xine-utils/xmlparser.c
@@ -171,6 +171,8 @@ static int xml_parser_get_node (xml_node_t *current_node, char *root_name, int r
if (rec < MAX_RECURSION) {
+ memset (tok, 0, TOKEN_SIZE);
+
while ((bypass_get_token) || (res = lexer_get_token(tok, TOKEN_SIZE)) != T_ERROR) {
bypass_get_token = 0;
lprintf("info: %d - %d : '%s'\n", state, res, tok);