This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Initialize 'gprof' in BoardCfg ()


I've committed the attached patch which initializes the 'gprof' member of BoardCfg. This fixes a Segmentation Fault in code which assumes it has been initialized if not NULL.

Dave

Index: commonCfg.cxx
===================================================================
RCS file: /cvs/src/src/sid/main/dynamic/commonCfg.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -c -p -r1.5 -r1.6
*** commonCfg.cxx	21 Oct 2003 21:39:04 -0000	1.5
--- commonCfg.cxx	27 Oct 2003 18:55:34 -0000	1.6
*************** BoardCfg::BoardCfg (const string name, 
*** 869,874 ****
--- 869,875 ----
    cpu (NULL),
    gdb (NULL),
    gloss (NULL),
+   gprof (NULL),
    main_mapper (NULL),
    icache (NULL),
    dcache (NULL),

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]