From: Carl Worth Date: Fri, 12 Nov 2010 04:54:41 +0000 (-0800) Subject: lib: Fix missing initialization of status field. X-Git-Tag: 0.5^0 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7278383005de3a0d61ac3471162e7ef633d45076;p=notmuch.git lib: Fix missing initialization of status field. This could have been a problematic bug. Fortuinately "gcc -O2" warns about it. --- diff --git a/lib/message.cc b/lib/message.cc index 293e854d..225b7e91 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);