[PATCH] notmuch-setup.c: Initialize getline(3) response_size to 0
Mike Kelly
pioto at pioto.org
Thu Oct 14 11:18:19 PDT 2010
This appears to be necessary on FreeBSD. If this isn't done, we get a
nasty segfault.
See: id:20101013094340.41580a2f at pioto.org
---
notmuch-setup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/notmuch-setup.c b/notmuch-setup.c
index 955deb7..0ed80ad 100644
--- a/notmuch-setup.c
+++ b/notmuch-setup.c
@@ -92,7 +92,7 @@ notmuch_setup_command (unused (void *ctx),
unused (int argc), unused (char *argv[]))
{
char *response = NULL;
- size_t response_size;
+ size_t response_size = 0;
notmuch_config_t *config;
char **old_other_emails;
size_t old_other_emails_len;
--
1.7.2.3
More information about the notmuch
mailing list