projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07876ac
)
lib: Silence a compiler warning.
author
Carl Worth
<cworth@cworth.org>
Tue, 9 Mar 2010 20:05:43 +0000
(12:05 -0800)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/lib/message.cc
b/lib/message.cc
index 0f98222d36a128283c2774e805a6af69f11f0228..721c9a675a426c794999938ea62f1c009cb08ab3 100644
(file)
--- 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);