]> granicus.if.org Git - mutt/commitdiff
Zero out IMAP_LIST before each imap_cmd_step in browser to avoid bogus
authorBrendan Cully <brendan@kublai.com>
Wed, 4 Jan 2006 17:28:32 +0000 (17:28 +0000)
committerBrendan Cully <brendan@kublai.com>
Wed, 4 Jan 2006 17:28:32 +0000 (17:28 +0000)
matches when the untagged response isn't a LIST response. Phil Pennock
diagnosed and proposed a patch for this bug.

imap/browse.c

index ab17be5038ea7d495676514b284c0f89f189e844..fc83259a95d0761a35e2e310ea76455b430dc4d5 100644 (file)
@@ -115,6 +115,7 @@ int imap_browse (char* path, struct browser_state* state)
       idata->cmddata = &list;
       do
       {
+       list.name = 0;
         rc = imap_cmd_step (idata);
         if (rc == IMAP_CMD_CONTINUE && list.name)
         {