about summary refs log tree commit homepage
path: root/lib/PublicInbox/xh_mset.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/xh_mset.h')
-rw-r--r--lib/PublicInbox/xh_mset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/xh_mset.h b/lib/PublicInbox/xh_mset.h
index 056fe22b..4e97a284 100644
--- a/lib/PublicInbox/xh_mset.h
+++ b/lib/PublicInbox/xh_mset.h
@@ -11,7 +11,7 @@ static void emit_doc_term(FILE *fp, const char *pfx, Xapian::Document *doc)
 
         for (cur.skip_to(pfx); cur != end; cur++) {
                 std::string tn = *cur;
-                if (!starts_with(&tn, pfx, pfx_len)) continue;
+                if (!starts_with(&tn, pfx, pfx_len)) break;
                 fputc(0, fp);
                 fwrite(tn.data(), tn.size(), 1, fp);
         }