bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

typo bug in mail/quit.c foils strcmp()...


From: Matthew Whitworth
Subject: typo bug in mail/quit.c foils strcmp()...
Date: Mon, 15 Jul 2002 10:24:49 -0700

A typo in mail/quit.c ("mbox" for "mb") causes the variables url and u
to always have the same values, which then causes

    strcmp (url_to_string (u), url_to_string (url))

to always return a value of zero, which makes it appear that the
working mailbox is always a system mailbox.

Matthew

---

Index: mail/quit.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mail/quit.c,v
retrieving revision 1.10
diff -c -r1.10 quit.c
*** mail/quit.c 15 Sep 2001 20:50:42 -0000      1.10
--- mail/quit.c 15 Jul 2002 17:12:55 -0000
***************
*** 72,78 ****
      mailbox_t mb;
      url_t u;
      mailbox_create_default (&mb, NULL);
!     mailbox_get_url (mbox, &u);
      if (strcmp (url_to_string (u), url_to_string (url)) != 0)
        {
        /* The mailbox we are closing is not a system one (%). Raise
--- 72,78 ----
      mailbox_t mb;
      url_t u;
      mailbox_create_default (&mb, NULL);
!     mailbox_get_url (mb, &u);
      if (strcmp (url_to_string (u), url_to_string (url)) != 0)
        {
        /* The mailbox we are closing is not a system one (%). Raise



reply via email to

[Prev in Thread] Current Thread [Next in Thread]