]> git.notmuchmail.org Git - notmuch/commitdiff
lib: Silence a compiler warning.
authorCarl Worth <cworth@cworth.org>
Tue, 9 Mar 2010 20:05:43 +0000 (12:05 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 9 Mar 2010 20:07:26 +0000 (12:07 -0800)
The original code was harmless, but apparently some compilers aren't
able to think deep enough to catch that.

lib/message.cc

index 0f98222d36a128283c2774e805a6af69f11f0228..721c9a675a426c794999938ea62f1c009cb08ab3 100644 (file)
@@ -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);