[grisbi-bugs] [Grisbi-0.6.0 0000668]: Using uninitialised variable in metatree.c

bugtracker at grisbi.org bugtracker at grisbi.org
Wed Oct 7 20:53:29 CEST 2009


The following issue has been RESOLVED. 
====================================================================== 
http://grisbi.tuxfamily.org/mantis/view.php?id=668 
====================================================================== 
Reported By:                guneeyoufix
Assigned To:                pbiava
====================================================================== 
Project:                    Grisbi-0.6.0
Issue ID:                   668
Category:                   Main
Reproducibility:            always
Severity:                   tweak
Priority:                   low
Status:                     resolved
Plateforme:                 Linux 
OS:                         Tous(All) 
Version OS:                 Vista Familiale Premium 
Unstable Impact:            No 
Version GTK:                 
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             10-07-2009 16:06 UTC
Last Modified:              10-07-2009 18:53 UTC
====================================================================== 
Summary:                    Using uninitialised variable in metatree.c
Description: 
When debugging with MS VC++ Express, in Debug mode, the debugger made me
aware of an uninitialised variable problem.

After opening an account, when one selects the Payees category, the test
    if ( ! div_id || ( sub_div_id <= 0 && current_number <= 0 ) )
on line 2317, is being carried out without the variables div_id,
sub_div_id, current_number being initialised.

This is not a major issue, because it has no consequence on the execution
of grisbi.
====================================================================== 

---------------------------------------------------------------------- 
 pbiava - 10-07-09 18:51  
---------------------------------------------------------------------- 
J'ai initialisé les variables à 0 car c'est une bonne pratique. Toutefois
si en théorie on pourrait avoir des variables non initialisées de fait ça
me semble improbable car la première condition me semble tout le temps
remplie.

[Edit] la fonction est bien appelée quand on clique sur payees bug corrigé

 

---------------------------------------------------------------------- 
 pbiava - 10-07-09 18:53  
---------------------------------------------------------------------- 
resolved in CVS 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-07-09 16:06  guneeyoufix    New Issue                                    
10-07-09 16:06  guneeyoufix    Plateforme                => Windows         
10-07-09 16:06  guneeyoufix    OS                        => Windows         
10-07-09 16:06  guneeyoufix    Version OS                => Vista Familiale
Premium
10-07-09 16:06  guneeyoufix    Unstable Impact           => No              
10-07-09 18:33  pbiava         Note Added: 0001186                          
10-07-09 18:51  pbiava         Note Edited: 0001186                         
10-07-09 18:53  pbiava         Plateforme               Windows => Linux    
10-07-09 18:53  pbiava         OS                       Windows => Tous(All)
10-07-09 18:53  pbiava         Status                   new => resolved     
10-07-09 18:53  pbiava         Resolution               open => fixed       
10-07-09 18:53  pbiava         Assigned To               => pbiava          
10-07-09 18:53  pbiava         Note Added: 0001187                          
======================================================================



More information about the bugsreports mailing list