<<< Date Index >>>     <<< Thread Index >>>

[PATCH 05 of 16] list needs to be initialized



1 file changed, 1 insertion(+)
imap/browse.c |    1 +


# HG changeset patch
# User Erik Hovland <erik@xxxxxxxxxxx>
# Date 1236891051 25200
# Branch HEAD
# Node ID d56f727afd7dcb5f95d4d82fa262699c707d8844
# Parent  83e3678ef5d33a3d8b4a64c035ffa43c61b73c42
list needs to be initialized.

diff --git a/imap/browse.c b/imap/browse.c
--- a/imap/browse.c
+++ b/imap/browse.c
@@ -62,6 +62,7 @@
   save_lsub = option (OPTIMAPCHECKSUBSCRIBED);
   unset_option (OPTIMAPCHECKSUBSCRIBED);
   strfcpy (list_cmd, option (OPTIMAPLSUB) ? "LSUB" : "LIST", sizeof 
(list_cmd));
+  memset (&list, 0, sizeof (list));
 
   if (!(idata = imap_conn_find (&(mx.account), 0)))
     goto fail;