diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2006-01-28 21:12:39 +0100 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2006-01-28 21:12:39 +0100 |
commit | c28f94c70573ba0971b0455470f77e95e582079a (patch) | |
tree | 54b628d2e5b0471486cdfce2d1a23d50a3afe342 /paragraph.c | |
parent | b1931775d2a601233a7e517b15c5477e3813f5ec (diff) | |
download | dctrl-tools-c28f94c70573ba0971b0455470f77e95e582079a.tar.gz |
Import 1.101
Diffstat (limited to 'paragraph.c')
-rw-r--r-- | paragraph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/paragraph.c b/paragraph.c index a6d1145..a777bcc 100644 --- a/paragraph.c +++ b/paragraph.c @@ -33,6 +33,10 @@ void para_parse_next(para_t * para) { debug_message("para_parse_next", 0); para->start = para->end; + for (size_t i = 0; i < fieldtrie_count(para->trie); i++) { + para->fields[i].start = 0; + para->fields[i].end = 0; + } fsaf_invalidate(para->fp, para->start); register enum { START, FIELD_NAME, BODY, BODY_NEWLINE, BODY_SKIPBLANKS, END } state = START; |