- fd was never initialized, then the close() method read it. Thanks
valgrind.
This commit is contained in:
parent
648da07d34
commit
7306746f0b
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: harddrv.cc,v 1.52 2002-03-25 01:47:13 cbothamy Exp $
|
||||
// $Id: harddrv.cc,v 1.53 2002-04-09 15:52:02 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -128,7 +128,7 @@ bx_hard_drive_c::~bx_hard_drive_c(void)
|
||||
bx_hard_drive_c::init(bx_devices_c *d, bx_cmos_c *cmos)
|
||||
{
|
||||
BX_HD_THIS devices = d;
|
||||
BX_DEBUG(("Init $Id: harddrv.cc,v 1.52 2002-03-25 01:47:13 cbothamy Exp $"));
|
||||
BX_DEBUG(("Init $Id: harddrv.cc,v 1.53 2002-04-09 15:52:02 bdenney Exp $"));
|
||||
|
||||
/* HARD DRIVE 0 */
|
||||
|
||||
@ -2741,6 +2741,11 @@ ssize_t default_image_t::write (const void* buf, size_t count)
|
||||
#if BX_SPLIT_HD_SUPPORT
|
||||
/*** concat_image_t function definitions ***/
|
||||
|
||||
concat_image_t::concat_image_t ()
|
||||
{
|
||||
fd = -1;
|
||||
}
|
||||
|
||||
void concat_image_t::increment_string (char *str)
|
||||
{
|
||||
// find the last character of the string, and increment it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user