From: Carl Worth Date: Tue, 9 Mar 2010 20:05:43 +0000 (-0800) Subject: lib: Silence a compiler warning. X-Git-Tag: 0.1~60 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=c446f22dee2de6f837709207f554607cf0882836 lib: Silence a compiler warning. The original code was harmless, but apparently some compilers aren't able to think deep enough to catch that. --- diff --git a/lib/message.cc b/lib/message.cc index 0f98222d..721c9a67 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -427,7 +427,7 @@ notmuch_message_get_filename (notmuch_message_t *message) const char *prefix = _find_prefix ("file-direntry"); int prefix_len = strlen (prefix); Xapian::TermIterator i; - char *direntry, *colon; + char *colon, *direntry = NULL; const char *db_path, *directory, *basename; unsigned int directory_id; void *local = talloc_new (message);