]> Pileus Git - ~andy/fetchmail/commitdiff
Fix UID trashing bug introduced into rev. 4019.
authorMatthias Andree <matthias.andree@gmx.de>
Sun, 6 Mar 2005 01:59:47 +0000 (01:59 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sun, 6 Mar 2005 01:59:47 +0000 (01:59 -0000)
svn path=/trunk/; revision=4021

uid.c

diff --git a/uid.c b/uid.c
index dc88f0cd673a7a7f5edfa8a1562d24e3be92d962..01a33137eef122c22f69145d829e92b488824b97 100644 (file)
--- a/uid.c
+++ b/uid.c
@@ -537,12 +537,12 @@ void uid_swap_lists(struct query *ctl)
     if (ctl->newsaved)
     {
        /* old state of mailbox may now be irrelevant */
-       struct idlist **temp = &ctl->oldsaved;
+       struct idlist *temp = ctl->oldsaved;
        if (outlevel >= O_DEBUG)
            report(stdout, GT_("swapping UID lists\n"));
        ctl->oldsaved = ctl->newsaved;
        ctl->newsaved = (struct idlist *) NULL;
-       free_str_list(temp);
+       free_str_list(&temp);
     }
     /* in fast uidl, there is no need to swap lists: the old state of
      * mailbox cannot be discarded! */