[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sylpheed
Subject:    [sylpheed:09687] Small Patch for mh.c
From:       "Joachim F. Selinger" <selinger () bawue ! de>
Date:       2002-01-31 14:56:05
[Download RAW message or body]


Hi!

just a small bug, I think. Both variables new and unread are _not_
initialized in mh.c so their use should be as follows:


*** mh.c.orig   Mon Nov  5 02:48:34 2001
--- mh.c        Fri Jan 25 11:21:58 2002
***************
*** 540,547 ****
  
                procmsg_get_mark_sum(".", &new, &unread, &total);
                if (n_msg > total) {
!                       new += n_msg - total;
!                       unread += n_msg - total;
                }
                item->new = new;
                item->unread = unread;
--- 540,547 ----
  
                procmsg_get_mark_sum(".", &new, &unread, &total);
                if (n_msg > total) {
!                       new = n_msg - total;
!                       unread = n_msg - total;
                }
                item->new = new;
                item->unread = unread;


Can someone verify this and add this patch to the list of things to  be
incorporated into the next version? Otherwise please a short note on why
the old version is ok to do. Thanks

Gruessle
Jocki
--
============================/\===/\=======/\============================
Joachim F. Selinger        /  \ /  \/\ /\/  \              ___
Brunhildenweg 4           /    \/\ /  \  \/\ \              |
D-70597 Stuttgart,Germany/     /  / CU \ /  \ \  ----------(0)----------
Tel.(49)+711-901-8040   /   ü /  /      /    \ \            '
Fax.(49)+711-901-8041==selinger(@)idefix.s.bawue.de======Soaring========

[Attachment #3 (APPLICATION/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic