Silence compiler warning by initializing a variable.

If Xapian threw an exception on notmuch_query_count_messages the count
variable could be used uninitialized.  Initialize count to solve the
problem.

Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
This commit is contained in:
Jeffrey C. Ollie 2009-11-25 07:01:36 -06:00 committed by Carl Worth
parent c835e2a505
commit e991148b00

View file

@ -315,7 +315,7 @@ notmuch_query_count_messages (notmuch_query_t *query)
{ {
notmuch_database_t *notmuch = query->notmuch; notmuch_database_t *notmuch = query->notmuch;
const char *query_string = query->query_string; const char *query_string = query->query_string;
Xapian::doccount count; Xapian::doccount count = 0;
try { try {
Xapian::Enquire enquire (*notmuch->xapian_db); Xapian::Enquire enquire (*notmuch->xapian_db);