From d71facd3690a1a4e951152c6b7fadb130efccd0c Mon Sep 17 00:00:00 2001 From: Pekka Pirinen Date: Wed, 17 May 2000 15:14:29 +0100 Subject: [PATCH] Fix uninit var Copied from Perforce Change: 21200 ServerID: perforce.ravenbrook.com --- mps/qa/function/83.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mps/qa/function/83.c b/mps/qa/function/83.c index 5da13fd64fb..26e928fc98c 100644 --- a/mps/qa/function/83.c +++ b/mps/qa/function/83.c @@ -1,6 +1,6 @@ /* TEST_HEADER - id = $HopeName$ + id = $HopeName: MMQA_test_function!83.c(trunk.2) $ summary = test for bug with segment summaries language = c link = testlib.o awlfmt.o @@ -8,13 +8,11 @@ END_HEADER */ /* - This bug, suggested by drj, turned out not to exist. The problem would have occurred when a nailed, buffered segment was scanned, -and the summary would be wrongly set. But in fact all buffered +and the summary would be wrongly set. But in fact all buffered segments are scanned in their entirety anyway, so no problem arises. - */ #include "testlib.h" @@ -22,10 +20,12 @@ arises. #include "mpscawl.h" #include "awlfmt.h" + void *stackpointer; mps_addr_t temp_root; + static void test(void) { mps_space_t space; @@ -36,7 +36,7 @@ static void test(void) mps_fmt_t format; mps_ap_t ap1, ap2, ap; - mycell *a, *b, *c, *d; + mycell *a, *b = NULL, *c, *d; int i; @@ -124,9 +124,9 @@ static void test(void) mps_space_destroy(space); comment("Destroyed space."); - } + int main(void) { void *m;