[totem-pl-parser] Make erasing comments from XML files slightly faster



commit 7f6b568668e0381a95f6a9227b85c44abc293ee3
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 4 14:59:10 2009 +0000

    Make erasing comments from XML files slightly faster

 plparse/totem-pl-parser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 01c2e85..872d63a 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1658,7 +1658,8 @@ totem_pl_parser_cleanup_xml (char *contents)
 {
 	char *needle;
 
-	while ((needle = strstr (contents, "<!--")) != NULL) {
+	needle = contents;
+	while ((needle = strstr (needle, "<!--")) != NULL) {
 		while (strncmp (needle, "-->", 3) != 0) {
 			*needle = ' ';
 			needle++;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]