This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
[patch] Initialize 'gprof' in BoardCfg ()
- From: Dave Brolley <brolley at redhat dot com>
- To: sid at sources dot redhat dot com
- Date: Mon, 27 Oct 2003 13:58:53 -0500
- Subject: [patch] Initialize 'gprof' in BoardCfg ()
- Organization: Red Hat Canada, Ltd
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),