aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-23 14:55:50 -0700
committerCarl Worth <cworth@cworth.org>2009-10-23 14:55:50 -0700
commitfb1bae07002d45138832eacb280419dbd7a19774 (patch)
treef3401e74df37267de8f127a1eac8157909bda8a1
parent336deb279e170c1ddd52b5a907a5d35be613db61 (diff)
Remove some unneeded initializers.
Some people might argue for more initializers to be "safer", but I actually prefer to leave things this way. It saves typing, but the real benefit is that the things that do require initialization stand out so we know to watch them carefully. And with valgrind, we actually get to catch errors earlier if we *don't* initialize them. So that can be "safer" ironically enough.
-rw-r--r--notmuch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch.c b/notmuch.c
index d21e4f5a..24a44797 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -382,7 +382,7 @@ int
dump_command (int argc, char *argv[])
{
FILE *output;
- notmuch_database_t *notmuch = NULL;
+ notmuch_database_t *notmuch;
notmuch_query_t *query;
notmuch_results_t *results;
notmuch_message_t *message;
@@ -458,7 +458,7 @@ int
restore_command (int argc, char *argv[])
{
FILE *input;
- notmuch_database_t *notmuch = NULL;
+ notmuch_database_t *notmuch;
char *line = NULL;
size_t line_size, line_len;
regex_t regex;