[PATCH] cli: initialize quiet variable in compact

Jani Nikula jani at nikula.org
Fri Jan 10 12:23:09 PST 2014


Surprisingly there's no compiler warning!
---
 notmuch-compact.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notmuch-compact.c b/notmuch-compact.c
index 8b820c0..6c59093 100644
--- a/notmuch-compact.c
+++ b/notmuch-compact.c
@@ -32,7 +32,7 @@ notmuch_compact_command (notmuch_config_t *config, int argc, char *argv[])
     const char *path = notmuch_config_get_database_path (config);
     const char *backup_path = NULL;
     notmuch_status_t ret;
-    notmuch_bool_t quiet;
+    notmuch_bool_t quiet = FALSE;
     int opt_index;
 
     notmuch_opt_desc_t options[] = {
-- 
1.8.5.2



More information about the notmuch mailing list