aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-11-11 20:54:41 -0800
committerCarl Worth <cworth@cworth.org>2010-11-11 20:54:41 -0800
commit7278383005de3a0d61ac3471162e7ef633d45076 (patch)
treee1c23f25c4d03e1f484703577e69f791c81036bf
parentfe8eeaf4a576b4cad2ec4faee8d5e373118771f8 (diff)
lib: Fix missing initialization of status field.0.5
This could have been a problematic bug. Fortuinately "gcc -O2" warns about it.
-rw-r--r--lib/message.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/message.cc b/lib/message.cc
index 293e854..225b7e9 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -1122,7 +1122,7 @@ notmuch_message_tags_to_maildir_flags (notmuch_message_t *message)
const char *filename;
char *filename_new;
char *to_set, *to_clear;
- notmuch_status_t status;
+ notmuch_status_t status = NOTMUCH_STATUS_SUCCESS;
_get_maildir_flag_actions (message, &to_set, &to_clear);