From 4e10bcf7727d22dbeb8aa55b27b41757ce3f9709 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 31 Dec 2005 01:18:49 +0100 Subject: [PATCH] Drop useless code for proc. instruction scanning --- src/dom/sgml/scanner.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dom/sgml/scanner.c b/src/dom/sgml/scanner.c index 674857349..77a98a654 100644 --- a/src/dom/sgml/scanner.c +++ b/src/dom/sgml/scanner.c @@ -399,16 +399,13 @@ static inline void scan_sgml_proc_inst_token(struct dom_scanner *scanner, struct dom_scanner_token *token) { unsigned char *string = scanner->position; - size_t size; token->string.string = string; /* Figure out where the processing instruction ends. This doesn't use * skip_sgml() since we MUST ignore precedence here to allow '<' inside * the data part to be skipped correctly. */ - for (size = scanner->end - string; - size > 0 && (string = skip_sgml_chars(scanner, string, '>')); - string++) { + for ( ; (string = skip_sgml_chars(scanner, string, '>')); string++) { if (string[-1] == '?') { string++; break;