Patchworkβ Appease the compiler.

login
register
about
Submitter David Edmondson
Date 2010-03-03 09:31:55
Message ID <1267608715-16206-1-git-send-email-dme@dme.org>
Download mbox | patch
Permalink /patch/410/
State New
Headers show

Comments

David Edmondson - 2010-03-03 09:31:55
---
 lib/message.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Carl Worth - 2010-03-09 23:53:11
On Wed,  3 Mar 2010 09:31:55 +0000, David Edmondson <dme@dme.org> wrote:
> -    char *direntry, *colon;
> +    char *direntry = NULL, *colon;

Another one that I just got around to fixing just before noticing it in
the queue.

Someday I'll be more caught up and not duplicating work as much.

But thanks for the patch, nonetheless!

-Carl

Patch

diff --git a/lib/message.cc b/lib/message.cc
index 0195050..5170422 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 *direntry = NULL, *colon;
     const char *db_path, *directory, *basename;
     unsigned int directory_id;
     void *local = talloc_new (message);