dovecot-2.2: fts: parser-html - parse_tag_name really does retur...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 27 18:19:08 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/8f68543fa7f8
changeset: 17393:8f68543fa7f8
user:      Phil Carmody <phil at dovecot.fi>
date:      Tue May 27 21:17:34 2014 +0300
description:
fts: parser-html - parse_tag_name really does return an integer not a bool
It seems to return 1 more than the number of additional characters
(after '<') are swallowed up by the state change, not a bool. This
would imply that '3' is wrong.

diffstat:

 src/plugins/fts/fts-parser-html.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 973b67dda572 -r 8f68543fa7f8 src/plugins/fts/fts-parser-html.c
--- a/src/plugins/fts/fts-parser-html.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/plugins/fts/fts-parser-html.c	Tue May 27 21:17:34 2014 +0300
@@ -60,7 +60,7 @@
 	return &parser->parser;
 }
 
-static bool
+static size_t
 parse_tag_name(struct html_fts_parser *parser,
 	       const unsigned char *data, size_t size)
 {


More information about the dovecot-cvs mailing list