Changes in directory llvm-test/MultiSource/Benchmarks/McCat/18-imp:
pgm.c updated: 1.2 -> 1.3 --- Log message: Make this test *NOT* depend on uninitialized memory contents. --- Diffs of the changes: (+2 -0) pgm.c | 2 ++ 1 files changed, 2 insertions(+) Index: llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c diff -u llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.2 llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.3 --- llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.2 Sun Nov 16 13:39:28 2003 +++ llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c Sat Nov 11 11:13:53 2006 @@ -56,6 +56,7 @@ /* Clear valid bit. */ img->valid = 0; + img->var = 0; } /* @@ -196,6 +197,7 @@ img->data = (char *) malloc((img->width * img->height) * sizeof(char)); img->hist = (int *) calloc(img->maxgray + 1, sizeof(int)); img->p = (double *) calloc(img->maxgray + 1, sizeof(double)); + img->var = NULL; /* Skip comments. */ fscanf(img->fp, "#%n", &n); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits