X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fquery.cc;h=9106b92deeccfe7a646091c5e8cc35bc660569ed;hp=a571a618bdd1350aa7041487af19cdf788834c36;hb=e991148b00fc683d1591ba27c387c6156d0ee67e;hpb=c835e2a5059ebc10580f8ae2a79c4f0f81374798 diff --git a/lib/query.cc b/lib/query.cc index a571a618..9106b92d 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -315,7 +315,7 @@ notmuch_query_count_messages (notmuch_query_t *query) { notmuch_database_t *notmuch = query->notmuch; const char *query_string = query->query_string; - Xapian::doccount count; + Xapian::doccount count = 0; try { Xapian::Enquire enquire (*notmuch->xapian_db);