[PATCH 2/2] fix: initialize error var before using it

Taesoo Kim taesoo at mit.edu
Thu Oct 25 16:33:59 PDT 2012


Signed-off-by: Taesoo Kim <taesoo at mit.edu>
---
 notmuch-config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/notmuch-config.c b/notmuch-config.c
index c95f9dd..195ddb4 100644
--- a/notmuch-config.c
+++ b/notmuch-config.c
@@ -403,6 +403,7 @@ notmuch_config_open (void *ctx,
 	g_error_free (error);
     }
 
+    error = NULL;
     config->maildir_add_as_tag_flags =
 	g_key_file_get_boolean (config->key_file,
 				"maildir", "add_as_tag_flags", &error);
-- 
1.8.0



More information about the notmuch mailing list