mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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:
parent
c835e2a505
commit
e991148b00
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue