From: sewardj Date: Thu, 9 Aug 2001 12:46:06 +0000 (+0000) Subject: [project @ 2001-08-09 12:46:06 by sewardj] X-Git-Tag: Approximately_9120_patches~1294 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=92b67d724a648d1a2ddb371c8ecd3333b0a2ba18;p=ghc-hetmet.git [project @ 2001-08-09 12:46:06 by sewardj] Remember to initialise stp->bitmap. Avoids a potential segfault with +RTS -c. --- diff --git a/ghc/rts/Storage.c b/ghc/rts/Storage.c index 6595ad7..feff59c 100644 --- a/ghc/rts/Storage.c +++ b/ghc/rts/Storage.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Storage.c,v 1.47 2001/08/09 12:12:23 sewardj Exp $ + * $Id: Storage.c,v 1.48 2001/08/09 12:46:06 sewardj Exp $ * * (c) The GHC Team, 1998-1999 * @@ -153,6 +153,7 @@ initStorage( void ) stp->scavenged_large_objects = NULL; stp->n_scavenged_large_blocks = 0; stp->is_compacted = 0; + stp->bitmap = NULL; } }