diff options
author | Mike Kelly <pioto@pioto.org> | 2010-10-14 14:18:19 -0400 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-10-29 13:13:02 -0700 |
commit | 14f1a79f44fde886c8c3f4c7cbcf17daf8fb34e2 (patch) | |
tree | a6d51cb232c46e2cc1a48ab14ccbe632d926d7a9 /notmuch-setup.c | |
parent | f7a688ec5314e668a6976805ae88d4e62f7cbd89 (diff) |
notmuch-setup.c: Initialize getline(3) response_size to 0
This appears to be necessary on FreeBSD. If this isn't done, we get a
nasty segfault.
See: id:20101013094340.41580a2f@pioto.org
Diffstat (limited to 'notmuch-setup.c')
-rw-r--r-- | notmuch-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-setup.c b/notmuch-setup.c index ec4bfebc..c3ea9371 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; const char **old_other_emails; size_t old_other_emails_len; |